(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.h
Returns 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.h
Returns the display subtitle of the image.
- (NSString *) imageSubtitle
The display subtitle of the image.
This method is optional.
IKImageBrowserView.h
Returns the display title of the image.
- (NSString *) imageTitle;
The display title of the image.
This method is optional.
IKImageBrowserView.h
Returns 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.h
Returns 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.h
Returns 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.h
Representation 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;
IKImageBrowserPathRepresentationType
A path representation (NSString
).
Available in Mac OS X v10.5 and later.
Declared in IKImageBrowserView.h
.
IKImageBrowserNSURLRepresentationType
An NSURL
object.
Available in Mac OS X v10.5 and later.
Declared in IKImageBrowserView.h
.
IKImageBrowserNSImageRepresentationType
An NSImage
object.
Available in Mac OS X v10.5 and later.
Declared in IKImageBrowserView.h
.
IKImageBrowserCGImageRepresentationType
A CGImageRef
object.
Available in Mac OS X v10.5 and later.
Declared in IKImageBrowserView.h
.
IKImageBrowserCGImageSourceRepresentationType
A CGImageSourceRef
object.
Available in Mac OS X v10.5 and later.
Declared in IKImageBrowserView.h
.
IKImageBrowserNSDataRepresentationType
An NSData
object.
Available in Mac OS X v10.5 and later.
Declared in IKImageBrowserView.h
.
IKImageBrowserNSBitmapImageRepresentationType
An NSBitmapImageRep
object.
Available in Mac OS X v10.5 and later.
Declared in IKImageBrowserView.h
.
IKImageBrowserQTMovieRepresentationType
A QTMovie
object.
Available in Mac OS X v10.5 and later.
Declared in IKImageBrowserView.h
.
IKImageBrowserQTMoviePathRepresentationType
A path (NSString) or URL (NSURL) to a QuickTime movie.
Available in Mac OS X v10.5 and later.
Declared in IKImageBrowserView.h
.
IKImageBrowserQCCompositionRepresentationType
A QCComposition
object.
Available in Mac OS X v10.5 and later.
Declared in IKImageBrowserView.h
.
IKImageBrowserQCCompositionPathRepresentationType
A path (NSString) or URL (NSURL) to a Quartz Composer composition.
Available in Mac OS X v10.5 and later.
Declared in IKImageBrowserView.h
.
IKImageBrowserQuickLookPathRepresentationType
A path (NSString) or URL (NSURL) to load data using QuickLook.
Available in Mac OS X v10.5 and later.
Declared in IKImageBrowserView.h
.
IKImageBrowserIconRefPathRepresentationType
A path to an icon.
Available in Mac OS X v10.5 and later.
Declared in IKImageBrowserView.h
.
IKImageBrowserIconRefRepresentationType
An 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)