• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: what happens between init and awakeFromNib?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >what happens between init and awakeFromNib? (From: Matthew <email@hidden>)

  • Prev by Date: Re: [NSHost currenthost] slooooooooooow
  • Next by Date: Re: Contextual menu for Text fields/views?
  • Previous by thread: what happens between init and awakeFromNib?
  • Next by thread: Re: what happens between init and awakeFromNib?
  • Index(es):
    • Date
    • Thread