• 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: James DiPalma <email@hidden>
  • Date: Fri, 15 Feb 2002 14:05:30 -0500

Do you have two instances of CustomView? what does self equal in each
call to awakeFromNib?

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.

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 (I prefer this design over invisible objects like
NSWindowController and NSDocumentController).


-jim


On Monday, February 11, 2002, at 02:16 PM, Manfred Lippert wrote:

- [NSBundle loadNibNamed ...] call
- CustomView: awakeFromNib (with [self window] == nil)
- CustomView. awakeFromNib (with [self window] != nil)
- AboutBox:awakeFromNib
- [NSBundle loadNibNamed ...] returns
_______________________________________________
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: Re: Monitoring volume mounts was Re: Anyone here written a kExt???
  • Next by Date: Re: Monitoring volume mounts was Re: Anyone here written a kExt???
  • Previous by thread: Re: Double call of awakeFromNib on custom view
  • Next by thread: Re: Double call of awakeFromNib on custom view
  • Index(es):
    • Date
    • Thread