Re: awakeFromNib called more than once per instance (was Re: static objects "autoreleased with no pool in place - just leaking")
Re: awakeFromNib called more than once per instance (was Re: static objects "autoreleased with no pool in place - just leaking")
- Subject: Re: awakeFromNib called more than once per instance (was Re: static objects "autoreleased with no pool in place - just leaking")
- From: Ryan Bates <email@hidden>
- Date: Wed, 18 Feb 2004 15:40:10 -0800
On Feb 18, 2004, at 1:56 PM, m wrote:
Coincidently, I just got bit by this (awakeFromNib getting called
again for instances when doing a "Save As"). Can anybody explain what
the rationale for calling awakeFromNib more than once is? I guess more
generally, why is the nib being loaded again (or is it) on a "Save As"
operation?
Does it still load twice if you comment out everything in the
"dataRepresentationOfType:" method and return nil? If not, then try
returning an empty data object ( [NSData data] ) and see if that has
the same effect. Slowly build up until you find out what's causing it.
Ryan
_______________________________________________
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.