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: 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.