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 protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to