Re: set file name in NSSavePanel
Re: set file name in NSSavePanel
- Subject: Re: set file name in NSSavePanel
- From: Klaus Backert <email@hidden>
- Date: Wed, 17 Mar 2010 12:36:41 +0100
On 17 Mar 2010, at 10:49, Nikhil Khandelwal wrote:
Is there any way to to set the file name in NSSavePanel for 10.5.
I tried "setNameFieldStringValue" but this is available for 10.6 or
later. Is there any similar method available for 10.5.
According to the documentation of NSSavePanel the method
- (void)beginSheetForDirectory:(NSString *)path file:(NSString *)name
modalForWindow:(NSWindow*)docWindow modalDelegate:(id)modalDelegate
didEndSelector:(SEL)didEndSelector contextInfo:(void *)contextInfo
"Presents a Save panel as a sheet with a specified path and,
optionally, a specified file in that path."
and
"name
Specifies a particular file in path that is selected when the Save
panel is presented to a user. When nil, no file is initially selected."
Hope this helps.
Klaus
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden