• 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: loadNibNamed:owner
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >loadNibNamed:owner (From: koko <email@hidden>)

  • Prev by Date: loadNibNamed:owner
  • Next by Date: Re: loadNibNamed:owner
  • Previous by thread: loadNibNamed:owner
  • Next by thread: Re: loadNibNamed:owner
  • Index(es):
    • Date
    • Thread