• 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
NSTextView won't deallocate
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTextView won't deallocate


  • Subject: NSTextView won't deallocate
  • From: Ryan Joseph <email@hidden>
  • Date: Sun, 17 Jul 2011 14:41:20 -0600

Simple question that is causing serious memory leaks in my app. Why given that example will dealloc never be called? I know the retainCount doesn't tell the whole story and it may be retained by other objects (rightfully so) but then WHEN will it be released if not when I request it to? I must be missing something... Thanks!

The code (in Pascal):

view := NSTextView.alloc.initWithFrame(NSMakeRect(0, 0, 0, 0));
// retainCount = 5
view.release;
// retainCount = 4, dealloc never called

Regards,
	Ryan Joseph
	thealchemistguild.com

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:

This email sent to email@hidden

  • Follow-Ups:
    • Re: NSTextView won't deallocate
      • From: Peter <email@hidden>
    • Re: NSTextView won't deallocate
      • From: Jens Alfke <email@hidden>
  • Prev by Date: Unable to re-add tracking area after it's been removed
  • Next by Date: A question of memory management style
  • Previous by thread: Re: Unable to re-add tracking area after it's been removed
  • Next by thread: Re: NSTextView won't deallocate
  • Index(es):
    • Date
    • Thread