Re: Double call of awakeFromNib on custom view
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.