• 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: What is Interface Builder doing behind the scenes?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What is Interface Builder doing behind the scenes?


  • Subject: Re: What is Interface Builder doing behind the scenes?
  • From: "I. Savant" <email@hidden>
  • Date: Tue, 1 Aug 2006 15:23:55 -0400


There is not direct analogy here. In code, you're already creating a pointer like:


NSPopupButton * myPopupButton ....

  and

NSTextField * myTextField ....

You can keep or dispose of these references at will and use them to speak to the objects you created.

With Interface Builder, the button / field / control / whatever is being created for you and is "freeze-dried" in the nib file, ready to "re-hydrate" when your app launches and the nib is loaded. Your IBOutlets (that you designate in your header file) are special "stubs" for Interface Builder to latch on to, ready-made references into which it plugs the objects you told it to when you built the nib.

When the nib is loaded, the freeze-dried objects (and their interconnections) are restored and your IBOutlet references are 'hooked up' to the designated objects, so you then have a live reference to all your buttons, windows, controllers, etc.

  Hope this helps.

--
I.S.


On Aug 1, 2006, at 3:10 PM, Phil wrote:

Given a nib file with a window with an NSPopUpButton and NSTextField, a connection is made from the PopUp to the TextField with the action takeObjectValueFrom:... from a code standpoint, how is this connection being set up?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40gmail.com


This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >What is Interface Builder doing behind the scenes? (From: Phil <email@hidden>)

  • Prev by Date: Re: Re: SplashScreen & Content view problem
  • Next by Date: Re: What is Interface Builder doing behind the scenes?
  • Previous by thread: What is Interface Builder doing behind the scenes?
  • Next by thread: Re: What is Interface Builder doing behind the scenes?
  • Index(es):
    • Date
    • Thread