Mac Developer Library

Developer

Quartz Framework Reference IKImageEditPanelDataSource Protocol Reference

Options
Deployment Target:

On This Page
Language:

IKImageEditPanelDataSource

The IKImageEditPanelDataSource protocol describes the methods that an IKImageEditPanel object uses to access the contents of its data source object.

Inheritance


Not Applicable

Conforms To


Not Applicable

Import Statement


import Quartz @import Quartz;

Availability


Available in OS X v10.5 and later.
  • image() image Required

    Returns an image. (required)

    Declaration

    Swift

    func image() -> Unmanaged<CGImage>!

    Objective-C

    - (CGImageRef)image

    Return Value

    An image.

    Discussion

    Your data source must implement this method.

    Import Statement

    import Quartz

    Availability

    Available in OS X v 10.5 and later.

  • Returns a thumbnail image whose size is no larger than the specified size.

    Declaration

    Swift

    optional func thumbnailWithMaximumSize(_ size: NSSize) -> Unmanaged<CGImage>!

    Objective-C

    - (CGImageRef)thumbnailWithMaximumSize:(NSSize)size

    Return Value

    An image.

    Import Statement

    import Quartz

    Availability

    Available in OS X v 10.5 and later.

  • Returns whether the adjust mode view tab should be displayed.

    Declaration

    Swift

    optional func hasAdjustMode() -> Bool

    Objective-C

    - (BOOL)hasAdjustMode

    Return Value

    YEStrue if the tab should be displayed, otherwise NO.

    Import Statement

    import Quartz

    Availability

    Available in OS X v10.6 and later.

  • Returns whether the details mode view tab should be displayed.

    Declaration

    Swift

    optional func hasDetailsMode() -> Bool

    Objective-C

    - (BOOL)hasDetailsMode

    Return Value

    YEStrue if the tab should be displayed, otherwise NO.

    Import Statement

    import Quartz

    Availability

    Available in OS X v10.6 and later.

  • Returns whether the effects mode view tab should be displayed.

    Declaration

    Swift

    optional func hasEffectsMode() -> Bool

    Objective-C

    - (BOOL)hasEffectsMode

    Return Value

    YEStrue if the tab should be displayed, otherwise NO.

    Import Statement

    import Quartz

    Availability

    Available in OS X v10.6 and later.