Mac Developer Library

Developer

Quartz Framework Reference IKDeviceBrowserViewDelegate Protocol Reference

Options
Deployment Target:

On This Page
Language:

IKDeviceBrowserViewDelegate

The IKDeviceBrowserViewDelegate defines the methods that the delegate of the IKDeviceBrowserView class can implement. All the methods are optional.

Inheritance


Not Applicable

Conforms To


Not Applicable

Import Statement


Swift

import Quartz

Objective-C

@import Quartz;

Availability


Available in OS X v10.6 and later.
  • Sent to the delegate when the selection changes in the browser view.

    Declaration

    Swift

    func deviceBrowserView(_ deviceBrowserView: IKDeviceBrowserView!, selectionDidChange device: ICDevice!)

    Objective-C

    - (void)deviceBrowserView:(IKDeviceBrowserView *)deviceBrowserView selectionDidChange:(ICDevice *)device

    Parameters

    deviceBrowserView

    The object that sent the message.

    device

    The newly selected device.

    Import Statement

    Objective-C

    @import Quartz;

    Swift

    import Quartz

    Availability

    Available in OS X v10.6 and later.

  • Invoked when the device browser encounters an error.

    Declaration

    Swift

    optional func deviceBrowserView(_ deviceBrowserView: IKDeviceBrowserView!, didEncounterError error: NSError!)

    Objective-C

    - (void)deviceBrowserView:(IKDeviceBrowserView *)deviceBrowserView didEncounterError:(NSError *)error

    Parameters

    deviceBrowserView

    The object that sent the message.

    error

    The error the device browser encountered.

    Discussion

    The user should handle the error in some fashion, for example, presenting an error panel to the user.

    Import Statement

    Objective-C

    @import Quartz;

    Swift

    import Quartz

    Availability

    Available in OS X v10.6 and later.