• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSArrayController and memory management
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: MVC question
  • Next by Date: Re: NSSavePanel, background-only app, "Replace?" alert ordering
  • Previous by thread: Re: MVC question
  • Next by thread: Handling Multiple NSURLConnections
  • Index(es):
    • Date
    • Thread