IKSlideshowDataSource Protocol Reference
| Adopted by | |
| Framework | System/Library/Frameworks/Quartz.framework/ImageKit.framework |
| Availability | Available in OS X v10.5 and later. |
| Declared in | IKSlideshow.h |
Overview
The IKSlideshowDataSource protocol describes the methods that an IKSlideshow object uses to access the contents of its data source object.
Tasks
Providing Slideshow Information
-
– numberOfSlideshowItemsrequired method -
– slideshowItemAtIndex:required method -
– nameOfSlideshowItemAtIndex: -
– canExportSlideshowItemAtIndex:toApplication:
Performing Custom Tasks
Instance Methods
canExportSlideshowItemAtIndex:toApplication:
Reports whether the export button should be enabled for a a slideshow item.
Return Value
YES if the export button should be enabled for an item; otherwise NO.
Availability
- Available in OS X v 10.5 and later.
Declared In
IKSlideshow.hnameOfSlideshowItemAtIndex:
Returns the display name for item at the specified index.
Parameters
- index
The index for a slideshow item.
Return Value
The display name. For the best user experience, you should provide the localized name, because this string appears in the user interface.
Discussion
This method is optional.
Availability
- Available in OS X v 10.5 and later.
Declared In
IKSlideshow.hnumberOfSlideshowItems
Returns the number of items in a slideshow. (required)
Return Value
The number of items in the slideshow.
Discussion
Your data source must implement this method.
Availability
- Available in OS X v 10.5 and later.
Declared In
IKSlideshow.hslideshowDidChangeCurrentIndex:
Performs custom tasks when the slideshow changes to the item at the specified index.
Parameters
- newIndex
The index of the current item.
Discussion
Image Kit invokes this method when the slideshow changes to the specified item. Implement this method to perform custom tasks at that time.
Availability
- Available in OS X v 10.5 and later.
Declared In
IKSlideshow.hslideshowDidStop
Performs custom tasks when the slideshow stops.
Discussion
TImage Kit invokes this method when the slideshow stops. Implement this method to perform custom tasks at that time.
Availability
- Available in OS X v 10.5 and later.
See Also
-
– slideshowWillStart
Declared In
IKSlideshow.hslideshowItemAtIndex:
Returns the item for a given index (required)
Parameters
- index
An index of an item in the slideshow.
Return Value
The object that corresponds to the item at the specified index. The item can be any of the following objects: NSImage, NSString (to specify a path name), NSURL, NSFileWrapper, CGImageRef, or PDFPage.
Discussion
Your data source must implement this method.
Availability
- Available in OS X v 10.5 and later.
Declared In
IKSlideshow.hslideshowWillStart
Performs custom tasks when the slideshow is about to start.
Discussion
Image Kit invokes this method when the slideshow is about to start. Implement this method to perform custom tasks at that time.
Availability
- Available in OS X v 10.5 and later.
See Also
-
– slideshowDidStop
Declared In
IKSlideshow.h© 2009 Apple Inc. All Rights Reserved. (Last updated: 2009-08-25)