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: Vince DeMarco <email@hidden>
- Date: Mon, 11 Feb 2002 09:28:46 -0800
On Sunday, February 10, 2002, at 01:52 PM, Manfred Lippert wrote:
Hi,
I have a window with a custom view in a nib.
At some place in my code I load that nib with [NSBundle loadNibNamed ...]
.
In my controller class (the owner) of that nib I've implemented
awakeFromNib.
In my custom view class I've also implemented awakeFromNib.
Is this controller associated with any other nib files in your application?
?
vince
The problem:
awakeFromNib on the custom view is called _twice_, and I don't know why!?
But I realize that [self window] is nil at the first call, so I can ignore
the first call by checking this. But is this the default behaviour and is
it
documented somewhere?
awakeFromNib on the owner is only called once - after these two
awakeFromNib
calls on the custom view.
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.
_______________________________________________
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.