Re: How to set default value for NSTextField from program before window is displayed?
Re: How to set default value for NSTextField from program before window is displayed?
- Subject: Re: How to set default value for NSTextField from program before window is displayed?
- From: "Kyle Sluder" <email@hidden>
- Date: Fri, 21 Mar 2008 20:29:19 -0400
On Fri, Mar 21, 2008 at 8:09 PM, Samvel Khalatian <email@hidden> wrote:
> Field (NSTextField), call it 'mate name', is connected to Controller
> via IBOutlet. Unfortunately setting any value in given text field from
> Controller init method does not produce any meaningful effect because
> it is executed before main window actually displayed resulting in
> empty field shown upon window appearance.
You need to elaborate on what's going on with this Controller object.
You really shouldn't need one; NSArrayController should suffice. You
would then bind the NSTextField to the array controller's selection
key.
--Kyle Sluder
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please 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