Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: of nibs and top level objects




On Apr 10, 2006, at 12:54 PM, j o a r wrote:


On 10 apr 2006, at 21.33, Paul Forgey wrote:

I do understand perfectly well what is going on now. This solves my problem because I've come to realize the top level objects really RETAIN THE NIB OWNER. I had an extraneous retain count of 14, and 14 top level objects. Releasing all of these top level objects put things back in balance.

I'm very surprised to hear that you can set up nib files that retain the files owner. It sounds like a very dangerous thing for Apple to allow for, as it would create retain cycles and memory management mess.

It would be interesting to find out exactly what it is in your nib file that's retaining the files owner. Shouldn't be so hard to track down, as it's something you've got 14 copies of...


It surprised me too, as you can see by my astonishment and confusion. It isn't my idea to set up nib files that retain the file's owner, it's the way nib files work. It's in the documentation, as I can now see after re-reading it with a clearer head.


I agree it sounds rather upside down, and I'd love to hear somebody from Apple explain why it is that way.



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >of nibs and top level objects (From: Paul Forgey <email@hidden>)
 >Re: of nibs and top level objects (From: j o a r <email@hidden>)
 >Re: of nibs and top level objects (From: Paul Forgey <email@hidden>)
 >Re: of nibs and top level objects (From: Paul Forgey <email@hidden>)
 >Re: of nibs and top level objects (From: Martin Wierschin <email@hidden>)
 >Re: of nibs and top level objects (From: Paul Forgey <email@hidden>)
 >Re: of nibs and top level objects (From: j o a r <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.