Re: NSOpenPanel and field setting
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