• 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
NSOpenPanel and field setting
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSOpenPanel and field setting


  • Subject: NSOpenPanel and field setting
  • From: "Alan Smith" <email@hidden>
  • Date: Tue, 18 Apr 2006 11:18:28 -0400

I have an NSOpenPanel that I want to open a folder. The question is, in
beginSheetForDirectory... what do I set "types" to be if I want the user to
select a folder and not a file?

The other question. I have 6 textFields and depending on which of the
buttons is pressed it will use an openPanel to select a folder and then the
corresponding field will be filled with the path of the folder selected in
the panel. How do I do this without using lots of "ifs."

Thanks, Alan

--
// Quotes from yours truly -------------------------
"You don't forget, you just don't remember."
"Maturity resides in the mind."
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: NSOpenPanel and field setting
      • From: Mike Blaguszewski <email@hidden>
    • Re: NSOpenPanel and field setting
      • From: Alan Hart <email@hidden>
  • Prev by Date: Best Cocoa Books
  • Next by Date: Re: Can add and delete items in coredata, but not change them
  • Previous by thread: Re: Best Cocoa Books
  • Next by thread: Re: NSOpenPanel and field setting
  • Index(es):
    • Date
    • Thread