Re: what happens between init and awakeFromNib?
Re: what happens between init and awakeFromNib?
- Subject: Re: what happens between init and awakeFromNib?
- From: Bob Ippolito <email@hidden>
- Date: Mon, 20 Dec 2004 01:19:42 -0500
On Dec 20, 2004, at 12:27 AM, Matthew wrote:
I'm finding that my Controller's dealloc method is not being called
(via log messages) and have noticed that at the very end of init: the
Controller's retain count is 1 (which I'm assuming is correct), but at
the very beginning of awakeFromNib, it's 3, which I don't quite
understand and think is not correct.
It probably is correct.
What happens in between init: and awakeFromNib that could cause this?
Is it possible that the two retains are actually occurring in init:
but the retainCount isn't being updated until init: formally exits?
I'm getting this info from [self retainCount].
Who cares?
It's not your business to worry about what AppKit and Foundation wants
to do with your objects. One of the retains is probably going to go
away when awakeFromNib is finished with the interface object graph, and
the other two are probably because your controller is the delegate of
some other objects or the target of some actions..
What might be a good approach to track this down? ObjectAlloc and
MallocDebug are there, but I'm not sure that they give the kind of
detail I'm looking for?
Don't.
-bob
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden