Mac Developer Library

Developer

Quartz Framework Reference IKImageBrowserDelegate Protocol Reference

Options
Deployment Target:

On This Page
Language:

IKImageBrowserDelegate

The IKImageBrowserDelegate is an informal protocol for the delegate of an IKImageBrowserView object. You can implement these methods to perform custom tasks when in response to events in the image browser view.

Inheritance


Not Applicable

Conforms To


Not Applicable

Import Statement


Swift

import Quartz

Objective-C

@import Quartz;

Availability


Available in OS X v10.5 and later.
  • Performs custom tasks when the user right-clicks the image browser view background.

    Declaration

    Swift

    func imageBrowser(_ aBrowser: IKImageBrowserView!, backgroundWasRightClickedWithEvent event: NSEvent!)

    Objective-C

    - (void)imageBrowser:(IKImageBrowserView *)aBrowser backgroundWasRightClickedWithEvent:(NSEvent *)event

    Parameters

    aBrowser

    An image browser view.

    event

    The event that invoked the method.

    Discussion

    This method signals that the user either right-clicked the background or left-clicked it with the Alt key pressed. You can implement this method if you want to perform custom tasks at that time.

    Import Statement

    Objective-C

    @import Quartz;

    Swift

    import Quartz

    Availability

    Available in OS X v10.5 and later.

  • Performs custom tasks when the user right-clicks an item in the image browser view.

    Declaration

    Swift

    func imageBrowser(_ aBrowser: IKImageBrowserView!, cellWasRightClickedAtIndex index: Int, withEvent event: NSEvent!)

    Objective-C

    - (void)imageBrowser:(IKImageBrowserView *)aBrowser cellWasRightClickedAtIndex:(NSUInteger)index withEvent:(NSEvent *)event

    Parameters

    aBrowser

    An image browser view.

    index

    The index of the cell.

    event

    The event that invoked the method.

    Discussion

    This method signals that the user either right-clicked an item in the browser or left-clicked the item with the Alt key pressed. You can implement this method if you want to perform custom tasks at that time.

    Import Statement

    Objective-C

    @import Quartz;

    Swift

    import Quartz

    Availability

    Available in OS X v10.5 and later.

  • Performs custom tasks when the user double-clicks an item in the image browser view.

    Declaration

    Swift

    func imageBrowser(_ aBrowser: IKImageBrowserView!, cellWasDoubleClickedAtIndex index: Int)

    Objective-C

    - (void)imageBrowser:(IKImageBrowserView *)aBrowser cellWasDoubleClickedAtIndex:(NSUInteger)index

    Parameters

    aBrowser

    An image browser view.

    index

    The index of the cell.

    Discussion

    This method signals that the user double-clicked an item in the image browser view. You can implement this method if you want to perform custom tasks at that time.

    Import Statement

    Objective-C

    @import Quartz;

    Swift

    import Quartz

    Availability

    Available in OS X v10.5 and later.

  • Performs custom tasks when the selection changes.

    Declaration

    Swift

    func imageBrowserSelectionDidChange(_ aBrowser: IKImageBrowserView!)

    Objective-C

    - (void)imageBrowserSelectionDidChange:(IKImageBrowserView *)aBrowser

    Parameters

    aBrowser

    An image browser view.

    Discussion

    This method signals that the user changes the selection in the image browser view. You can implement this method if you want to perform custom tasks at that time.

    Import Statement

    Objective-C

    @import Quartz;

    Swift

    import Quartz

    Availability

    Available in OS X v10.5 and later.