Mac Developer Library

Developer

Quartz Framework Reference IKImageEditPanelDataSource Protocol Reference

Options
Deployment Target:

On This Page
Language:

IKImageEditPanelDataSource

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.

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

  • Returns a dictionary of the image properties associated with the image in the image edit panel.

    Declaration

    Swift

    optional func imageProperties() -> [NSObject : AnyObject]!

    Objective-C

    - (NSDictionary *)imageProperties

    Return Value

    A dictionary that contains the properties of the image.

    Import Statement

    Objective-C

    @import Quartz;

    Swift

    import Quartz

    Availability

    Available in OS X v 10.5 and later.

  • Sets an image with the specified properties. (required)

    Declaration

    Swift

    func setImage(_ image: CGImage!, imageProperties metaData: [NSObject : AnyObject]!)

    Objective-C

    - (void)setImage:(CGImageRef)image imageProperties:(NSDictionary *)metaData

    Discussion

    Your data source must implement this method.

    Import Statement

    Objective-C

    @import Quartz;

    Swift

    import Quartz

    Availability

    Available in OS X v 10.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

    Objective-C

    @import Quartz;

    Swift

    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

    Objective-C

    @import Quartz;

    Swift

    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

    Objective-C

    @import Quartz;

    Swift

    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

    Objective-C

    @import Quartz;

    Swift

    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

    Objective-C

    @import Quartz;

    Swift

    import Quartz

    Availability

    Available in OS X v10.6 and later.