• 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: Why getting two awakeFromNib messages??
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Why getting two awakeFromNib messages?? (From: DairyKnight <email@hidden>)
 >Re: Why getting two awakeFromNib messages?? (From: Volker in Lists <email@hidden>)
 >Re: Why getting two awakeFromNib messages?? (From: DairyKnight <email@hidden>)

  • Prev by Date: Re: Why getting two awakeFromNib messages??
  • Next by Date: Re: Why getting two awakeFromNib messages??
  • Previous by thread: Re: Why getting two awakeFromNib messages??
  • Next by thread: Re: Why getting two awakeFromNib messages??
  • Index(es):
    • Date
    • Thread