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

Re: NSOpenPanel and field setting


  • Subject: Re: NSOpenPanel and field setting
  • From: Mike Blaguszewski <email@hidden>
  • Date: Tue, 18 Apr 2006 13:11:33 -0400

On Apr 18, 2006, at 11:18 AM, Alan Smith wrote:

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."

One approach would be to make a custom controller with an IBOutlet for the text field and an IBAction method that creates and runs the NSOpenPanel (and puts the path into the text field). Instantiate six such controllers in the nib, and wire them up in Interface Builder.


--
Mike Blaguszewski / Ambrosia Software, Inc.
_______________________________________________
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: "Alan Smith" <email@hidden>
References: 
 >NSOpenPanel and field setting (From: "Alan Smith" <email@hidden>)

  • Prev by Date: Re: Interface Builder Date Localization
  • Next by Date: Re: Comparing NSEntityDescription instances?
  • Previous by thread: Re: NSOpenPanel and field setting
  • Next by thread: Re: NSOpenPanel and field setting
  • Index(es):
    • Date
    • Thread