Re: NSSavePanel: save a folder
Re: NSSavePanel: save a folder
- Subject: Re: NSSavePanel: save a folder
- From: "Stephen Deken" <email@hidden>
- Date: Thu, 15 Feb 2007 15:38:41 -0600
How would I configure a NSSavePanel if I wanted the user to specify a
folder for me to create. I.e. I don't want to save a file, but a folder.
You don't have to do any configuration at all. The string returned
from the NSSavePanel could refer to either a file or a directory.
Just take the string and create the directory (if it doesn't already
exist and there is no file with the same name).
If you're trying to get the NSSavePanel to allow the user to select
all files regardless of extension, it might be enough to not specify
any valid files at all, or failing that, to implement the delegate
method panel:isValidFilename: and always return YES.
Cheers,
--
Stephen Deken
email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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