Re: loadNibNamed:owner
Re: loadNibNamed:owner
- Subject: Re: loadNibNamed:owner
- From: Charles Srstka <email@hidden>
- Date: Thu, 19 Apr 2012 15:46:56 -0500
On Apr 19, 2012, at 3:41 PM, koko wrote:
> I have created a nib containing a view. The view has controls. The Files Owner has been specified. Control outlets have been added to Files Owner and everything connected.
>
> I alloc and initWithFrame the files owner class. I call loadNibNamed and pass the files owner object as the owner.
>
> loadNibNamed returns YES
>
> At this point looking at the files owner in the debugger shows all the outlets but they are nil!
>
> Should not the outlets be connected when the nib loads?
Don’t use loadNibNamed:owner: for this. Use an NSViewController subclass.
Charles
_______________________________________________
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