Double call of awakeFromNib on custom view
Double call of awakeFromNib on custom view
- Subject: Double call of awakeFromNib on custom view
- From: Manfred Lippert <email@hidden>
- Date: Sun, 10 Feb 2002 22:52:59 +0100
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.
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.