(informal protocol)
| Framework | System/Library/Frameworks/Quartz.framework/ImageKit.framework |
| Declared in | IKImageBrowserView.h |
The IKImageBrowserItem informal protocol declares the methods that an instance of the IKImageBrowserView class uses to access the contents of its data source for a given item. Some of the methods in this protocol are needed frequently, so you should implement them efficiently.
Returns the image to display.
- (id) imageRepresentation;
The image to display; can return nil if the item has no image to display.
Your data source must implement this method. This method is called frequently, so the receiver should cache the returned instance.
IKImageBrowserView.hReturns the representation type of the image to display.
- (NSString *) imageRepresentationType;
A string that specifies the image representation type. The string can be any of the constants defined in “Image Representation Types”.
Your data source must implement this method.
IKImageBrowserView.hReturns the display subtitle of the image.
- (NSString *) imageSubtitle
The display subtitle of the image.
This method is optional.
IKImageBrowserView.hReturns the display title of the image.
- (NSString *) imageTitle;
The display title of the image.
This method is optional.
IKImageBrowserView.hReturns a unique string that identifies the data source item.
- (NSString *) imageUID;
The string that identifies the data source item
Your data source must implement this method. The image browser view uses this identifier to associate the data source item and its cache.
IKImageBrowserView.hReturns the version of the item.
- (NSUInteger) imageVersion;
The version of the item.
This method is optional. The receiver can return a new version to let the image browser knows that it should not use its cache for the item.
IKImageBrowserView.hReturns whether this item is selectable.
- (BOOL) isSelectable;
YES if the item is selectable; NO otherwise.
This method is optional. You can prevent selection of this item by returning NO.
IKImageBrowserView.hRepresentation types for images.
NSString * const IKImageBrowserPathRepresentationType; NSString * const IKImageBrowserNSURLRepresentationType; NSString * const IKImageBrowserNSImageRepresentationType; NSString * const IKImageBrowserCGImageRepresentationType; NSString * const IKImageBrowserCGImageSourceRepresentationType; NSString * const IKImageBrowserNSDataRepresentationType; NSString * const IKImageBrowserNSBitmapImageRepresentationType; NSString * const IKImageBrowserQTMovieRepresentationType; NSString * const IKImageBrowserQTMoviePathRepresentationType; NSString * const IKImageBrowserQCCompositionRepresentationType; NSString * const IKImageBrowserQCCompositionPathRepresentationType; NSString * const IKImageBrowserQuickLookPathRepresentationType; NSString * const IKImageBrowserIconRefPathRepresentationType; NSString * const IKImageBrowserIconRefRepresentationType;
IKImageBrowserPathRepresentationTypeA path representation (NSString).
Available in Mac OS X v10.5 and later.
Declared in IKImageBrowserView.h.
IKImageBrowserNSURLRepresentationTypeAn NSURLobject.
Available in Mac OS X v10.5 and later.
Declared in IKImageBrowserView.h.
IKImageBrowserNSImageRepresentationTypeAn NSImage object.
Available in Mac OS X v10.5 and later.
Declared in IKImageBrowserView.h.
IKImageBrowserCGImageRepresentationTypeA CGImageRef object.
Available in Mac OS X v10.5 and later.
Declared in IKImageBrowserView.h.
IKImageBrowserCGImageSourceRepresentationTypeA CGImageSourceRef object.
Available in Mac OS X v10.5 and later.
Declared in IKImageBrowserView.h.
IKImageBrowserNSDataRepresentationTypeAn NSData object.
Available in Mac OS X v10.5 and later.
Declared in IKImageBrowserView.h.
IKImageBrowserNSBitmapImageRepresentationTypeAn NSBitmapImageRep object.
Available in Mac OS X v10.5 and later.
Declared in IKImageBrowserView.h.
IKImageBrowserQTMovieRepresentationTypeA QTMovie object.
Available in Mac OS X v10.5 and later.
Declared in IKImageBrowserView.h.
IKImageBrowserQTMoviePathRepresentationTypeA path (NSString) or URL (NSURL) to a QuickTime movie.
Available in Mac OS X v10.5 and later.
Declared in IKImageBrowserView.h.
IKImageBrowserQCCompositionRepresentationTypeA QCComposition object.
Available in Mac OS X v10.5 and later.
Declared in IKImageBrowserView.h.
IKImageBrowserQCCompositionPathRepresentationTypeA path (NSString) or URL (NSURL) to a Quartz Composer composition.
Available in Mac OS X v10.5 and later.
Declared in IKImageBrowserView.h.
IKImageBrowserQuickLookPathRepresentationTypeA path (NSString) or URL (NSURL) to load data using QuickLook.
Available in Mac OS X v10.5 and later.
Declared in IKImageBrowserView.h.
IKImageBrowserIconRefPathRepresentationTypeA path to an icon.
Available in Mac OS X v10.5 and later.
Declared in IKImageBrowserView.h.
IKImageBrowserIconRefRepresentationTypeAn icon.
Available in Mac OS X v10.5 and later.
Declared in IKImageBrowserView.h.
IKImageBrowserView.h
© 2007 Apple Inc. All Rights Reserved. (Last updated: 2007-01-12)