Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > mainNibDidLoad and custom NIBs

mainNibDidLoad and custom NIBs
Thread Tools
VEGAN
Senior User
Join Date: Jun 2002
Location: UK
Status: Offline
Reply With Quote
Sep 6, 2002, 02:10 PM
 
OK, I have made a panel that has it's own .nib file. So, is there an equivalent for "mainNibDidLoad" for my custom nibs? Or does it work with all... my AboutBox, Prefs, etc.??
     
Ibson
Mac Enthusiast
Join Date: Nov 2001
Status: Offline
Reply With Quote
Sep 6, 2002, 08:25 PM
 
You want -awakeFromNib; as follows:
Code:
- (void)awakeFromNib { // do stuff }
It's described in the documentation as:
Prepares the receiver for service after it has been loaded from an Interface Builder archive, or nib file. An awakeFromNib message is sent to each object loaded from the archive, but only if it can respond to the message, and only after all the objects in the archive have been loaded and initialized. When an object receives an awakeFromNib message, it's guaranteed to have all its outlet instance variables set.
     
VEGAN  (op)
Senior User
Join Date: Jun 2002
Location: UK
Status: Offline
Reply With Quote
Sep 7, 2002, 02:58 AM
 
Thanx

I had already managed to get around this issue... my way. [I realized I didn't really need to know this. Instead I should have used something I already knew ]

But thankz... for the next time.
     
   
 
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Top
Privacy Policy
All times are GMT -4. The time now is 04:20 PM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,