• 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: Toplevel Objects in NIB files
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Toplevel Objects in NIB files


  • Subject: Re: Toplevel Objects in NIB files
  • From: Graeme Hiebert <email@hidden>
  • Date: Tue, 2 Apr 2002 21:49:55 -0800

On Tuesday, April 2, 2002, at 05:26 PM, Sherm Pendley wrote:

On Tuesday, April 2, 2002, at 07:32 PM, Nat! wrote:

I asked this before, but under a different subject line, so maybe it didn't get any attention :)

What I would _really_ like to know is how NSWindowController learns to know all top level objects in its associate NIBs. This is a trick I would like to do myself sometimes.

After the NIB is loaded and the objects in it deserialized, for each outlet, a corresponding set*: method is looked for in the NIB's owner, and if it's found, called.

For example, if you've created and connected an outlet named "myButton" in IB, the method "setMyButton:" will be called when the NIB is loaded, with a pointer to the object loaded from the NIB.

That's all well and good, but what about the top-level objects that aren't connected to any outlet?

-g
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: Toplevel Objects in NIB files (From: Sherm Pendley <email@hidden>)

  • Prev by Date: Re: HELP!!! with NSMutableArray
  • Next by Date: Re: Cocoa & Printing
  • Previous by thread: Re: Toplevel Objects in NIB files
  • Next by thread: Re: Toplevel Objects in NIB files
  • Index(es):
    • Date
    • Thread