Re: Why getting two awakeFromNib messages??
Re: Why getting two awakeFromNib messages??
- Subject: Re: Why getting two awakeFromNib messages??
- From: Volker in Lists <email@hidden>
- Date: Sun, 25 Oct 2009 10:21:06 +0100
Hi,
you load the second nib from the main controller i guess. Thereby you
set the instance of your main ontroller as owner, thus it gets the
awakeFromNib call. Set your second controller as owner or nil (if you
have an instance of your second class in your NIB as file owner (!)).
Cheers,
Volker
Am 25.10.2009 um 09:55 schrieb DairyKnight:
Hi all,
I'm trying to use two nib files in my program. In my main controller
class,
I load the second nib with:
[NSBundle loadNibNamed:"second" owner:self];
But then, not only does the second controller in the second nib file
recevie
the awakeFromNib message, but also does the main controller
class. Anyone knows why? Or Cocoa just broadcasts this message to
every
class?
_______________________________________________
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