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


That said, I still don't see why you would have to use the exotic nib loading methods you've outlined here (using either NSTopLevelObjects or NSNib), in place of regular nib loading. If things are working fine for you now, by all means leave them as they are, but I think you have a solution that's overly complex.

j o a r



Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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>)



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.