Re: NSSavePanel
Re: NSSavePanel
- Subject: Re: NSSavePanel
- From: Nick Zitzmann <email@hidden>
- Date: Mon, 20 Sep 2010 15:30:44 -0600
On Sep 20, 2010, at 3:25 PM, Sean McBride wrote:
>> Is it not possible to set the file name text field before displaying
>> an NSSavePanel? I see no "setters" in the docs for filename.
>
> Incredibly, this was only added in 10.6. Are you on an older OS? See
> setNameFieldStringValue:
Well, sort of. On Snow Leopard, that is the correct method. On Leopard and earlier, the -runModalForDirectory:file: and the sheet-based equivalent do the same thing if you pass in a string for the file argument. Incidentally, that method works in Snow Leopard as well, although its use is now deprecated.
Nick Zitzmann
<http://www.chronosnet.com/>
_______________________________________________
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