Re: Why getting two awakeFromNib messages??
Re: Why getting two awakeFromNib messages??
- Subject: Re: Why getting two awakeFromNib messages??
- From: Kyle Sluder <email@hidden>
- Date: Sun, 25 Oct 2009 19:52:09 -0700
On Sun, Oct 25, 2009 at 7:30 PM, DairyKnight <email@hidden> wrote:
> Thanks for the answer. Do you know why the file's owner gets awakFromNib
> call as well? Is it creating a new file's owner object?
No, the file's owner is never created by virtue of loading a nib. It
is always an object that already exists.
> I tried to NSLog(@"%@", self); in maincontroller's awakefromnib, but the
> second call to that raised an exception.
Backtrace?
> In the code I was trying to pass the second controller as a pointer to the
> maincontroller so its methods could be called. Is there a better way in
> Cocoa to do this?
This doesn't have enough context to make any sense. Wired up as an
outlet, or passed as an argument to a method, or…
--Kyle Sluder
_______________________________________________
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