• 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: Double call of awakeFromNib on custom view
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Double call of awakeFromNib on custom view


  • Subject: Re: Double call of awakeFromNib on custom view
  • From: Manfred Lippert <email@hidden>
  • Date: Fri, 15 Feb 2002 21:51:44 +0100

> Do you have two instances of CustomView?

No. Just one.

> what does self equal in each call to awakeFromNib?

It is exactly the same on both calls.

> Since awakeFromNib is only called when loading a nib and is only called
> after all connections have been established, I can't think of any reason
> for a single object to get two awakeFromNib calls during one
> loadNibNamed call.

I can see it in the debugger. It happens - really! ;-)

> Getting multiple awakeFromNib calls can happen when an object is instantiated
> in one nib and then is used as File's Owner when loading a second nib

No, I am not loading a second nib.

It is really a strange problem, but I can workaround if I check [self
window] for nil.

Regards,
Mani
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Open/Save into packages?
  • Next by Date: Documents and "Created with:"
  • Previous by thread: Re: Double call of awakeFromNib on custom view
  • Next by thread: Getting hold of an NSView from an NSDocument
  • Index(es):
    • Date
    • Thread