Mac Developer Library

Developer

Quartz Framework Reference IKDeviceBrowserView Class Reference

Options
Deployment Target:

On This Page
Language:

IKDeviceBrowserView

Inheritance


Conforms To


Import Statement


Swift

import Quartz

Objective-C

@import Quartz;

Availability


Available in OS X v10.6 and later.

The IKDeviceBrowserView allows you to select a camera or scanner from a list of the available devices.

Delegation

The IKDeviceBrowserView delegate must conform to the IKDeviceBrowserViewDelegate protocol. The delegate provides methods to inform you of selection changes in the browser as well as errors encountered when creating the browser list.

  • Returns the selected device. (read-only)

    Declaration

    Swift

    var selectedDevice: ICDevice! { get }

    Objective-C

    @property(readonly) ICDevice *selectedDevice

    Import Statement

    Objective-C

    @import Quartz;

    Swift

    import Quartz

    Availability

    Available in OS X v10.6 and later.

    See Also

    deviceBrowserView:selectionDidChange: (IKDeviceBrowserViewDelegate)

  • mode mode Property

    Specifies the browser display mode.

    Declaration

    Swift

    var mode: IKDeviceBrowserViewDisplayMode

    Objective-C

    @property IKDeviceBrowserViewDisplayMode mode

    Discussion

    The supported display modes are defined in Device Browser Display Modes

    Import Statement

    Objective-C

    @import Quartz;

    Swift

    import Quartz

    Availability

    Available in OS X v10.6 and later.

  • delegate delegate Property

    Specifies the delegate object.

    Declaration

    Swift

    unowned(unsafe) var delegate: IKDeviceBrowserViewDelegate!

    Objective-C

    @property(assign) id< IKDeviceBrowserViewDelegate > delegate

    Discussion

    The delegate object must conform to the IKDeviceBrowserViewDelegate protocol.

    Import Statement

    Objective-C

    @import Quartz;

    Swift

    import Quartz

    Availability

    Available in OS X v10.6 and later.

  • These constants specify the display mode of the device browser.

    Declaration

    Swift

    enum IKDeviceBrowserViewDisplayMode : Int { case Table case Outline case Icon }

    Objective-C

    enum { IKDeviceBrowserViewDisplayModeTable, IKDeviceBrowserViewDisplayModeOutline, IKDeviceBrowserViewDisplayModeIcon }; typedef NSInteger IKDeviceBrowserViewDisplayMode;

    Constants

    • Table

      IKDeviceBrowserViewDisplayModeTable

      The devices are displayed in a table.

      Available in OS X v10.6 and later.

    • Outline

      IKDeviceBrowserViewDisplayModeOutline

      The devices are displayed in an outline.

      Available in OS X v10.6 and later.

    • Icon

      IKDeviceBrowserViewDisplayModeIcon

      The devices are displayed as icons.

      Available in OS X v10.6 and later.

    Import Statement

    Objective-C

    @import Quartz;

    Swift

    import Quartz

    Availability

    Available in OS X v10.6 and later.