Mac Developer Library

Developer

Quartz Framework Reference IKSaveOptions Class Reference

Options
Deployment Target:

On This Page
Language:

IKSaveOptions

Inheritance


Conforms To


Import Statement


Swift

import Quartz

Objective-C

@import Quartz;

Availability


Available in OS X v10.5 and later.

The IKSaveOptions class initializes, adds, and manages user interface options for saving image data.

  • Initializes a save options accessory pane for the provided image properties and uniform type identifier.

    Declaration

    Swift

    init!(imageProperties imageProperties: [NSObject : AnyObject]!, imageUTType imageUTType: String!)

    Objective-C

    - (instancetype)initWithImageProperties:(NSDictionary *)imageProperties imageUTType:(NSString *)imageUTType

    Parameters

    imageProperties

    A dictionary of image properties.

    imageUTType

    A string that specifies a uniform type identifier, such as JPEG. See Uniform Type Identifiers Overview.

    Return Value

    The initialized object.

    Import Statement

    Objective-C

    @import Quartz;

    Swift

    import Quartz

    Availability

    Available in OS X v10.5 and later.

  • Adds IKSaveOptions accessory view to a NSSavePanel.

    Declaration

    Swift

    func addSaveOptionsAccessoryViewToSavePanel(_ savePanel: NSSavePanel!)

    Objective-C

    - (void)addSaveOptionsAccessoryViewToSavePanel:(NSSavePanel *)savePanel

    Parameters

    savePanel

    The save panel to add the IKSaveOptions to.

    Import Statement

    Objective-C

    @import Quartz;

    Swift

    import Quartz

    Availability

    Available in OS X v10.5 and later.

  • Returns a dictionary of updated image properties that reflects the user’s selection. (read-only)

    Declaration

    Swift

    var imageProperties: [NSObject : AnyObject]! { get }

    Objective-C

    @property(readonly) NSDictionary *imageProperties

    Import Statement

    Objective-C

    @import Quartz;

    Swift

    import Quartz

    Availability

    Available in OS X v10.5 and later.

  • Returns the uniform type identifier that reflects the user’s selection. (read-only)

    Declaration

    Swift

    var imageUTType: String! { get }

    Objective-C

    @property(readonly) NSString *imageUTType

    Import Statement

    Objective-C

    @import Quartz;

    Swift

    import Quartz

    Availability

    Available in OS X v10.5 and later.

  • Returns a dictionary that contains the save options selected by the user. (read-only)

    Declaration

    Swift

    var userSelection: [NSObject : AnyObject]! { get }

    Objective-C

    @property(readonly) NSDictionary *userSelection

    Import Statement

    Objective-C

    @import Quartz;

    Swift

    import Quartz

    Availability

    Available in OS X v10.5 and later.

  • delegate delegate Property

    Specifies the delegate object.

    Declaration

    Swift

    unowned(unsafe) var delegate: AnyObject!

    Objective-C

    @property(assign) id delegate

    Import Statement

    Objective-C

    @import Quartz;

    Swift

    import Quartz

    Availability

    Available in OS X v10.6 and later.

  • Called to determine if the specified uniform type identifier should be shown in the save panel.

    Declaration

    Swift

    func saveOptions(_ saveOptions: IKSaveOptions!, shouldShowUTType utType: String!) -> Bool

    Objective-C

    - (BOOL)saveOptions:(IKSaveOptions *)saveOptions shouldShowUTType:(NSString *)utType

    Import Statement

    Objective-C

    @import Quartz;

    Swift

    import Quartz

    Availability

    Available in OS X v10.6 and later.