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

Re: NSTextView won't deallocate


  • Subject: Re: NSTextView won't deallocate
  • From: Ryan Joseph <email@hidden>
  • Date: Mon, 18 Jul 2011 07:26:06 -0600

I literally mean that _exact_ snippet is leaking, 2 lines of code with no retaining by any superviews. I only have limited experience with Cocoa and don't use Objective C so maybe someone else could test this. Just allocate, initialize then release the object and see if it's ever deallocated. Impossible that would happen right?

On Jul 17, 2011, at 10:59 PM, Jens Alfke wrote:

> Impossible to tell from that snippet. Keep in mind that a view’s superview retains it, so a view in a window will never be dealloced until you remove it from its superview or close/release the window. Another possibility is that the view is retained by some other object that’s being leaked … sometimes you have to look at all the leaks to find the one that triggers all the others. (Use Instruments or the ‘leaks’ command to look for all leaked objects.)

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: Vincent Habchi <email@hidden>
References: 
 >NSTextView won't deallocate (From: Ryan Joseph <email@hidden>)
 >Re: NSTextView won't deallocate (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: A question of memory management style
  • Next by Date: Re: NSTextView won't deallocate
  • Previous by thread: Re: NSTextView won't deallocate
  • Next by thread: Re: NSTextView won't deallocate
  • Index(es):
    • Date
    • Thread