Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Can I tell which object is retaining my window?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can I tell which object is retaining my window?



The plot thickens!

I've found out what's causing this strange behaviour, it's a subclass of NSProgressIndicator (Or maybe the NSSlider) that I downloaded!
If I remove these two custom controls from my window, it all behaves as it's supposed to.


James Bucanek wrote:
email@hidden wrote on Sunday, July 30, 2006:
So, as far as I can tell - something else is sending retain messages to my window. Is there any way to find out what it is?

Debug > Launch Using Performance Tool > ObjectAlloc

ObjectAlloc can be configured to log all alloc, retain, and release messages sent to an object.

But as others have pointed out, it appears that you have some very odd retain/release usage. I suspect that your application is simply over-retaining objects. ObjectAlloc will quickly shed some light on what code is at fault.


James Bucanek
____________________________________________________________________
Author of Beginning Xcode ISBN: 047175479X
<http://www.beginningxcode.com/>

_______________________________________________ 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


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

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.