Adopted by | |
Framework | System/Library/Frameworks/Quartz.framework/ImageKit.framework |
Availability | Available in Mac OS X v10.5 and later. |
Declared in | IKSlideshow.h |
The IKSlideshowDataSource
protocol describes the methods that an IKSlideshow
object uses to access the contents of its data source object.
Important: Slide show data source methods may be called on secondary threads. When you implement these methods, you must ensure that they are safe to run on threads other than the main thread.
– numberOfSlideshowItems
– slideshowItemAtIndex:
– nameOfSlideshowItemAtIndex:
– canExportSlideshowItemAtIndex:toApplication:
Reports whether the export button should be enabled for a a slideshow item.
- (BOOL)canExportSlideshowItemAtIndex: (NSUInteger)index toApplication: (NSString *)applicationBundleIdentifier;
YES
if the export button should be enabled for an item; otherwise NO
.
This method is optional.
IKSlideshow.h
Returns the display name for item at the specified index.
- (NSString*)nameOfSlideshowItemAtIndex: (NSUInteger)index;
The index for a slideshow item.
The display name. For the best user experience, you should provide the localized name, because this string appears in the user interface.
This method is optional.
IKSlideshow.h
Returns the number of items in a slideshow.
- (NSUInteger)numberOfSlideshowItems;
The number of items in the slideshow.
Your data source must implement this method.
IKSlideshow.h
Performs custom tasks when the slideshow changes to the item at the specified index.
- (void)slideshowDidChangeCurrentIndex: (NSUInteger)newIndex;
The index of the current item.
This method is optional. Image Kit invokes this method when the slideshow changes to the specified item. Implement this method to perform custom tasks at that time.
IKSlideshow.h
Performs custom tasks when the slideshow stops.
- (void)slideshowDidStop;
This method is optional. Image Kit invokes this method when the slideshow stops. Implement this method to perform custom tasks at that time.
IKSlideshow.h
Returns the item for a given index
- (id)slideshowItemAtIndex: (NSUInteger)index;
An index of an item in the slideshow.
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
.
Your data source must implement this method.
IKSlideshow.h
Performs custom tasks when the slideshow is about to start.
- (void)slideshowWillStart;
This method is optional. Image Kit invokes this method when the slideshow is about to start. Implement this method to perform custom tasks at that time.
IKSlideshow.h
© 2009 Apple Inc. All Rights Reserved. (Last updated: 2009-03-04)