• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSSavePanel: save a folder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >NSSavePanel: save a folder (From: Pierre Bernard <email@hidden>)

  • Prev by Date: NSSavePanel: save a folder
  • Next by Date: Model changes behind NSTreeController's back
  • Previous by thread: NSSavePanel: save a folder
  • Next by thread: Model changes behind NSTreeController's back
  • Index(es):
    • Date
    • Thread