May 2003
Intermediate to advanced
566 pages
27h 29m
English
NSSavePanel — Mac OS X 10.0
This class is an implementation of the complete Mac OS X file Save dialog, which clients can use to present a file browser to users for saving files. It is possible to provide an accessory view to be displayed on the bottom part of the Save panel. Accessory views can be used to provide additional parameters that should be used in the Save operation. A graphics application, for example, may use the accessory view to provide controls for the user to specify compression and format options for the file to be saved.
|
|
@interface NSSavePanel : NSPanel
|
// Accessor Methods
|
- (void)setTreatsFilePackagesAsDirectories:(BOOL)flag; |
- (BOOL)treatsFilePackagesAsDirectories;
|
- (void)setAccessoryView:(NSView *)aView; |
- (NSView *)accessoryView;
|
- (void)setExtensionHidden:(BOOL)flag; |
- (void)setCanSelectHiddenExtension:(BOOL)flag; |
- (void)setDelegate:(id)anObject; |
- (void)setDirectory:(NSString *)path; |
- (NSString *)directory;
|
- (void)setPrompt:(NSString *)prompt; |
- (NSString *)prompt;
|
- (void)setTitle:(NSString *)title; |
- (NSString *)title;
|
- (void)setRequiredFileType:(NSString *)type; |
- (NSString *)requiredFileType;
|
// Class Methods
|
+ (NSSavePanel *)savePanel;
|
// Instance Methods
|
- (void)cancel:(id)sender; |
- (void)beginSheetForDirectory:(NSString *)path file:(NSString *)name modalForWindow:(NSWindow *)docWindow ... |
Read now
Unlock full access