| Inherits from | |
| Conforms to | |
| Framework | /System/Library/Frameworks/Quartz.framework/ImageKit.framework |
| Availability | Available in Mac OS X v10.5 and later. |
| Declared in | IKImageBrowserView.h |
The IKImageBrowserView class is a view for displaying and browsing a large amount of images and movies efficiently.
– selectionIndexes
– setSelectionIndexes:byExtendingSelection:
– setAllowsMultipleSelection:
– allowsMultipleSelection
– setAllowsEmptySelection:
– allowsEmptySelection
– setAllowsReordering:
– allowsReordering
– setAnimates:
– animates
– expandGroupAtIndex:
– collapseGroupAtIndex:
– isGroupExpandedAtIndex:
Returns whether an empty selection is allowed.
- (BOOL) allowsEmptySelection;
YES if the receiver allows an empty selection; NO otherwise.
IKImageBrowserView.hReturns whether multiple selections are allowed.
- (BOOL) allowsMultipleSelection;
YES if the receiver allows the user to select more than one cell at a time; NO otherwise.
IKImageBrowserView.hReturns whether the user can reorder items.
- (BOOL) allowsReordering;
YES if the user can reorder items; NO otherwise.
IKImageBrowserView.hReturns whether the receiver animates reordering and changes of the data source.
- (BOOL) animates;
YES if the receiver animates reordering and changes of the data source; NO otherwise.
IKImageBrowserView.hReturns the cell size.
- (NSSize) cellSize;
The current size for the cells in the image browser view.
IKImageBrowserView.hReturns the appearance style mask for the cell.
- (NSUInteger) cellsStyleMask;
The appearance style mask for the cell.
IKImageBrowserView.hCollapses a group at the specified index.
- (void) collapseGroupAtIndex:(NSUInteger) index;
The index of the group you want to collapse.
IKImageBrowserView.hReturns whether the receiver constrains the cell's image to its original size.
- (BOOL) constrainsToOriginalSize;
NO if the image is not constrained; otherwise YES.
IKImageBrowserView.hReturns the receiver’s content resizing mask, which determines how its content is resized while zooming.
- (NSUInteger) contentResizingMask;
The content resizing mask.
IKImageBrowserView.hReturns the data source of the receiver.
- (id ) dataSource;
The data source (IKImageBrowserDataSource). The data source is not retained by the receiver.
IKImageBrowserView.hReturns the delegate of the receiver.
- (id) delegate;
The delegate.
IKImageBrowserView.hReturns the dragging destination delegate of the receiver.
- (id) draggingDestinationDelegate;
The receiver's dragging destination delegate.
IKImageBrowserView.hExpands a group at the specified index.
- (void) expandGroupAtIndex:(NSUInteger) index;
The index of the group you want to expand.
IKImageBrowserView.hReturns the index of the cell where the drop operation occurred.
- (NSUInteger) indexAtLocationOfDroppedItem;
The index of the cell where the drop operation occurred.
The returned index is valid until the next drop occurs.
IKImageBrowserView.hReturns the index of the item at the specified location.
- (NSInteger) indexOfItemAtPoint: (NSPoint)point;
The location of the item.
The index of the item or NSNotFound if no item at this location.
IKImageBrowserView.hInitializes a newly allocated image browser view with the provided frame rectangle.
- (id) initWithFrame:(NSRect) frame;
The rectangle for the image browser.
The initialized object.
IKImageBrowserView.hReturns whether the group at the provided index is expanded.
- (BOOL) isGroupExpandedAtIndex:(NSUInteger) index;
The index you want to check.
YES if the group is expanded; NO otherwise.
IKImageBrowserView.hReturns the frame rectangle for the item located at the specified index.
- (NSRect) itemFrameAtIndex: (NSInteger)index;
The index of the item whose frame rectangle you want to obtain.
The frame rectangle of the item.
IKImageBrowserView.hMarks the receiver as needing its data reloaded.
- (void) reloadData;
IKImageBrowserView.hScrolls the receiver to the item at the specified index.
- (void) scrollIndexToVisible:(NSInteger) index;
The index of the item to scroll to.
IKImageBrowserView.hReturns the indexes of the selected cells.
- (NSIndexSet *) selectionIndexes;
The indexes of the selected cells.
IKImageBrowserView.hControls whether an empty selection is allowed.
- (void) setAllowsEmptySelection: (BOOL) flag;
A BOOL value that specifies whether to allow an empty selection.
IKImageBrowserView.hControls whether the user can select more than one cell at a time.
- (void) setAllowsMultipleSelection: (BOOL) flag;
A BOOL value that specifies whether to allow multiple selections.
IKImageBrowserView.hControls whether the user can reorder items.
- (void) setAllowsReordering: (BOOL) flag;
A BOOL value that specifies whether the user can reorder items.
IKImageBrowserView.hControls whether the receiver animates reordering and changes of the data source.
- (void) setAnimates: (BOOL) flag;
A BOOL value that specifies whether the receiver animates reordering and changes of the data source.
IKImageBrowserView.hSets the cell size.
- (void) setCellSize:(NSSize) size;
The size to set.
IKImageBrowserView.hDefines the appearance style of the cells.
- (void) setCellsStyleMask:(NSUInteger) mask;
An integer bit mask. A mask can be specified by combining any of the options described in “Cell Appearance Style Masks” using the C bitwise OR operator.
IKImageBrowserView.hSets whether the receiver constrains the cell’s image to its original size.
- (void) setConstrainsToOriginalSize: (BOOL) flag;
A flag that specifies whether to constrain the image. The default value is NO.
IKImageBrowserView.hDetermines how the receiver resizes its content when zooming.
- (void) setContentResizingMask:(NSUInteger) mask;
A resizing mask. You specify a mask by combining any of the following options using the C bitwise OR operator: NSViewWidthSizable, NSViewHeightSizable. Other values are ignored.
IKImageBrowserView.hSets the data source of the receiver.
- (void) setDataSource:(id) source;
A data source (IKImageBrowserDataSource).
IKImageBrowserView.hSets the delegate of the receiver.
- (void) setDelegate: (id) aDelegate;
The delegate must implement the IKImageBrowserDelegate informal protocol.
IKImageBrowserView.hSets the dragging destination delegate of the receiver.
- (void) setDraggingDestinationDelegate:(id) delegate;
The delegate (NSDraggingDestination) to set.
IKImageBrowserView.hSelects cells at the specified indexes.
- (void) setSelectionIndexes:(NSIndexSet *) indexes byExtendingSelection:(BOOL) extendSelection;
The indexes of the cells you want to select.
A BOOL value that specifies whether to extend the current selection. Pass YES to extends the selection; NO replaces the current selection.
IKImageBrowserView.hSets the zoom value.
- (void) setZoomValue:(float)aValue;
The zoom value. This value should be greater or equal to zero and less or equal than one. A zoom value of zero corresponds to the minimum size (40x40 pixels). A zoom value of one means images fits the browser bounds. Other values are interpolated.
IKImageBrowserView.hReturns the current zoom value.
- (float) zoomValue;
The zoom value.
IKImageBrowserView.hMasks for the appearance style bit field.
enum{
IKCellsStyleNone =0,
IKCellsStyleShadowed =1,
IKCellsStyleOutlined =2,
IKCellsStyleTitled =4,
IKCellsStyleSubtitled =8
};
IKCellsStyleNoneNo style.
Available in Mac OS X v10.5 and later.
Declared in IKImageBrowserView.h.
IKCellsStyleShadowedCells use shadows.
Available in Mac OS X v10.5 and later.
Declared in IKImageBrowserView.h.
IKCellsStyleOutlinedCells are outlined.
Available in Mac OS X v10.5 and later.
Declared in IKImageBrowserView.h.
IKCellsStyleTitledCells display a title.
Available in Mac OS X v10.5 and later.
Declared in IKImageBrowserView.h.
IKCellsStyleSubtitledCells display a subtitle.
Available in Mac OS X v10.5 and later.
Declared in IKImageBrowserView.h.
IKImageBrowserView.hAttributes for the group style.
enum{
IKGroupBezelStyle,
IKGroupDisclosureStyle,
};
IKGroupBezelStyleA bezel style.
Available in Mac OS X v10.5 and later.
Declared in IKImageBrowserView.h.
IKGroupDisclosureStyleA disclosure triangle.
Available in Mac OS X v10.5 and later.
Declared in IKImageBrowserView.h.
These constants affect the appearance of a group.
IKImageBrowserView.hKeys for image browser view options.
NSString * const IKImageBrowserBackgroundColorKey; NSString * const IKImageBrowserSelectionColorKey; NSString * const IKImageBrowserCellsOutlineColorKey; NSString * const IKImageBrowserCellsTitleAttributesKey; NSString * const IKImageBrowserCellsHighlightedTitleAttributesKey; NSString * const IKImageBrowserCellsSubtitleAttributesKey;
IKImageBrowserBackgroundColorKeyA key for the background color of the image browser view. The associated value is an NSColor object.
Available in Mac OS X v10.5 and later.
Declared in IKImageBrowserView.h.
IKImageBrowserSelectionColorKeyA key for the color that indicates a selection. The associated value is an NSColor object.
Available in Mac OS X v10.5 and later.
Declared in IKImageBrowserView.h.
IKImageBrowserCellsOutlineColorKeyA key for the outline color for an item in the image browser view. The associated value is an NSColor object.
Available in Mac OS X v10.5 and later.
Declared in IKImageBrowserView.h.
IKImageBrowserCellsTitleAttributesKeyA key for title attribute of an item in the image browser view. The associated value is an NSDictionary object.
Available in Mac OS X v10.5 and later.
Declared in IKImageBrowserView.h.
IKImageBrowserCellsHighlightedTitleAttributesKeyA key for the highlighted title attribute for an item in the image browser view. The associated value is an NSDictionary object.
Available in Mac OS X v10.5 and later.
Declared in IKImageBrowserView.h.
IKImageBrowserCellsSubtitleAttributesKeyA key for a subtitle attribute for an item in the image browser view. The associated value is an NSDictionary object.
Available in Mac OS X v10.5 and later.
Declared in IKImageBrowserView.h.
You can set and retrieve values for these keys using the methods setValue:forKey and valueForKey:.
IKImageBrowserView.hKeys for group attributes.
NSString * const IKImageBrowserGroupRangeKey; NSString * const IKImageBrowserGroupBackgroundColorKey; NSString * const IKImageBrowserGroupTitleKey; NSString * const IKImageBrowserGroupStyleKey;
IKImageBrowserGroupRangeKeyA key for the range of a group. The associated value is an NSValue object.
Available in Mac OS X v10.5 and later.
Declared in IKImageBrowserView.h.
IKImageBrowserGroupBackgroundColorKeyA key for the background color of a group. The associated value is an NSColor object.
Available in Mac OS X v10.5 and later.
Declared in IKImageBrowserView.h.
IKImageBrowserGroupTitleKeyA key for the title of a group. The associated value is an NSString object.
Available in Mac OS X v10.5 and later.
Declared in IKImageBrowserView.h.
IKImageBrowserGroupStyleKeyA key for the style of a group. The associated value is one of the constants defined in “Group Style Attributes”.
Available in Mac OS X v10.5 and later.
Declared in IKImageBrowserView.h.
IKImageBrowserView.h
© 2006 Apple Computer, Inc. All Rights Reserved. (Last updated: 2006-12-13)