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 (Cocoa-dev@lists.apple.com) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com