Class

IKImageBrowserView

The IKImageBrowserView class is a view for displaying and browsing a large amount of images and movies efficiently. This class will be deprecated in a future release. Please switch to NSCollectionView instead.

Declaration

@interface IKImageBrowserView : NSView

Overview

You must set a datasource for the view and implement, at a minimum, the numberOfItemsInImageBrowser: and imageBrowser:itemAtIndex: described in IKImageBrowserDataSource Protocol. The items must conform to the IKImageBrowserItem Protocol protocol.

The class’s delegate object must conform to IKImageBrowserDelegate Protocol protocol. It receives notification of changes in selection, as well as mouse events in the cells.

Topics

Initializing and Setting Up an Image Browser View

- initWithFrame:

Initializes a newly allocated image browser view with the provided frame rectangle.

Updating the Display of the Content

- reloadData

Marks the receiver as needing its data reloaded.

Getting and Setting the Delegate

delegate

Returns the delegate of the receiver.

Getting and Setting the Data Source

dataSource

Returns the data source of the receiver.

Setting the Appearance

- setCellsStyleMask:

Defines the appearance style of the cells.

- cellsStyleMask

Returns the appearance style mask for the cell.

- setConstrainsToOriginalSize:

Sets whether the receiver constrains the cell’s image to its original size.

- constrainsToOriginalSize

Returns whether the receiver constrains the cell's image to its original size.

- setIntercellSpacing:

Sets the spacing between cells in the view.

- intercellSpacing

Returns the spacing between cells in the view.

Creating a Custom Cell for an Item

- newCellForRepresentedItem:

Returns the cell to use for the specified item.

Zooming and Resizing

- setZoomValue:

Sets the zoom value.

- zoomValue

Returns the current zoom value.

- setContentResizingMask:

Determines how the receiver resizes its content when zooming.

- contentResizingMask

Returns the receiver’s content resizing mask, which determines how its content is resized while zooming.

Scrolling

- scrollIndexToVisible:

Scrolls the receiver to the item at the specified index.

Setting and Getting Cell Size

- setCellSize:

Sets the cell size.

- cellSize

Returns the cell size.

Getting Item Information

- indexOfItemAtPoint:

Returns the index of the item at the specified location.

- itemFrameAtIndex:

Returns the frame rectangle for the item located at the specified index.

- visibleItemIndexes

Returns the indexes of the view’s currently visible items.

- cellForItemAtIndex:

Returns the browser cell for the item at the specified index.

Reordering and Groups Items

- selectionIndexes

Returns the indexes of the selected cells.

- setSelectionIndexes:byExtendingSelection:

Selects cells at the specified indexes.

- setAllowsMultipleSelection:

Controls whether the user can select more than one cell at a time.

- allowsMultipleSelection

Returns whether multiple selections are allowed.

- setAllowsEmptySelection:

Controls whether an empty selection is allowed.

- allowsEmptySelection

Returns whether an empty selection is allowed.

- setAllowsReordering:

Controls whether the user can reorder items.

- allowsReordering

Returns whether the user can reorder items.

- setAnimates:

Controls whether the receiver animates reordering and changes of the data source.

- animates

Returns whether the receiver animates reordering and changes of the data source.

- expandGroupAtIndex:

Expands a group at the specified index.

- collapseGroupAtIndex:

Collapses a group at the specified index.

- isGroupExpandedAtIndex:

Returns whether the group at the provided index is expanded.

Supporting Drag and Drop

- setDraggingDestinationDelegate:

Sets the dragging destination delegate of the receiver.

- draggingDestinationDelegate

Returns the dragging destination delegate of the receiver.

- setDropIndex:dropOperation:

Allows the class to retarget the drop action.

- indexAtLocationOfDroppedItem

Returns the index of the cell where the drop operation occurred.

- setAllowsDroppingOnItems:

Specifies whether the user can drop on items.

- allowsDroppingOnItems

Returns whether the user can drop on items.

- dropOperation

Returns the current drop operation.

Core Animation Layer Integration

- setForegroundLayer:

The Core Animation layer used as the foreground overlay.

- foregroundLayer

Returns the foreground Core Animation layer

- setBackgroundLayer:

The Core Animation layer used as the view’s background.

- backgroundLayer

Returns the foreground Core Animation layer

QuickLook Support

- setCanControlQuickLookPanel:

Specifies whether the view can automatically take control of the QuickLook panel.

- canControlQuickLookPanel

Returns whether the view can automatically take control of the QuickLook panel.

Getting Columns and Rows Information

- numberOfColumns

Returns the current number of columns.

- numberOfRows

Returns the current number of rows.

- rectOfColumn:

Returns the rectangle containing the specified column.

- columnIndexesInRect:

Returns the column indexes in the specified rectangle.

- rectOfRow:

Returns the rectangle containing the specified row.

- rowIndexesInRect:

Returns the row indexes in the specified rectangle.

Constants

Cell Appearance Style Masks

Masks for the appearance style bit field.

Group Style Attributes

Attributes for the group style. Used by the

View Options Keys

Keys for image browser view options. You set and retrieve values for these keys by sending the view setValue:forKey and valueForKey: messages.

Group Keys

Keys for group attributes.

IKImageBrowserDropOperation

These constants specify the locations for dropping items onto the browser view. Used by the method setDropIndex:dropOperation:.

Relationships

Inherits From

Conforms To