Mac OS X Reference Library Apple Developer
Search

IKSaveOptions Class Reference

Inherits from
Conforms to
Framework
System/Library/Frameworks/Quartz.framework/ImageKit.framework
Availability
Available in Mac OS X v10.5 and later.
Declared in
IKSaveOptions.h
Related sample code

Overview

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

Tasks

Creating A Save Options Accessory View

Retrieving User Responses

Getting and Setting the Delegate

File Type Filtering

Properties

For more about Objective-C properties, see “Properties” in The Objective-C Programming Language.

delegate

Specifies the delegate object.

@property(assign) id delegate

Availability
  • Available in Mac OS X v10.6 and later.
Declared In
IKSaveOptions.h

imageProperties

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

@property(readonly) NSDictionary *imageProperties

Availability
  • Available in Mac OS X v10.6 and later.
Related Sample Code
Declared In
IKSaveOptions.h

imageUTType

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

@property(readonly) NSString *imageUTType

Availability
  • Available in Mac OS X v10.6 and later.
Related Sample Code
Declared In
IKSaveOptions.h

userSelection

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

@property(readonly) NSDictionary *userSelection

Availability
  • Available in Mac OS X v10.6 and later.
Declared In
IKSaveOptions.h

Instance Methods

addSaveOptionsAccessoryViewToSavePanel:

Adds IKSaveOptions accessory view to a NSSavePanel.

- (void)addSaveOptionsAccessoryViewToSavePanel:(NSSavePanel *)savePanel

Parameters
savePanel

The save panel to add the IKSaveOptions to.

Availability
  • Available in Mac OS X v10.5 and later.
Related Sample Code
Declared In
IKSaveOptions.h

initWithImageProperties:imageUTType:

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

- (id)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.

Availability
  • Available in Mac OS X v10.5 and later.
Declared In
IKSaveOptions.h

Delegate Methods

saveOptions:shouldShowUTType:

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

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

Parameters
saveOptions

The IKSaveOptions instance that called the delegate.

utType

The uniform type identifier to test.

Return Value

YES if the specified type should be shown in the save options, otherwise NO.

Availability
  • Available in Mac OS X v10.6 and later.
Declared In
IKSaveOptions.h



Last updated: 2010-03-24

Did this document help you? Yes It's good, but... Not helpful...