NSArrayController and memory management
NSArrayController and memory management
- Subject: NSArrayController and memory management
- From: Jean Bovet <email@hidden>
- Date: Sat, 7 Feb 2004 22:14:27 +0100
I was tracking some memory leak in my app and I found a strange memory
behavior (may it's not strange, but I'm quite surprised): if you create
an empty Cocoa application and you add an NSArrayController to the nib
file and then you display (in the awakeFromNib method of an simple
class that you instantiate in the nib file) the retainCount of this
NSArrayController (without doing anything with it), the retainCount is
at 5! Is this normal ? The problem is that in my app, some of my
NSArrayController have a retainCount of 15 and they never deallocate
(and I don't retain them).
Thanks for any help on this memory management!
Jean Bovet
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.