Hi,
There is a instance variable in my AppController class named "Volume".
I'm doing alloc and initWithDictionary to get an instance of Volume.
I have to do [selectedPTVolume retain]; when allocing to get it to work properly. When destroying this object to get a new one, I'm doing [selectedPTVolume release]; but then the retainCount is still one. If I release it twice, the GUI hangs (selectedPTVolume contains the root item of a outline view).

How to release it properly?
Shall I get its retainCount and then release it that many times?

Thanks,
Nick


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to