• 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: How is this an "incorrect decrement of a reference count"?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How is this an "incorrect decrement of a reference count"?


  • Subject: Re: How is this an "incorrect decrement of a reference count"?
  • From: Nick Zitzmann <email@hidden>
  • Date: Mon, 19 Mar 2012 17:38:22 -0600

On Mar 19, 2012, at 5:27 PM, G S wrote:

> That reminds me of another question, though: Someone earlier mentioned the
> need to release elements loaded from the nib, in dealloc.  I didn't think
> this was necessary, so I don't do it.  And there are no apparent leaks as a
> result.  What's the story on that?

Are you using NSViewController or NSWindowController? If so, then that's not necessary, since those two classes clean up after themselves. It is also not necessary in the principal nib, since I don't think that ever gets deallocated. It is only necessary if you used NSBundle to load the nib manually.

Nick Zitzmann
<http://www.chronosnet.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: How is this an "incorrect decrement of a reference count"?
      • From: G S <email@hidden>
References: 
 >How is this an "incorrect decrement of a reference count"? (From: G S <email@hidden>)
 >Re: How is this an "incorrect decrement of a reference count"? (From: Roland King <email@hidden>)
 >Re: How is this an "incorrect decrement of a reference count"? (From: G S <email@hidden>)
 >Re: How is this an "incorrect decrement of a reference count"? (From: Roland King <email@hidden>)
 >Re: How is this an "incorrect decrement of a reference count"? (From: G S <email@hidden>)
 >Re: How is this an "incorrect decrement of a reference count"? (From: Charles Srstka <email@hidden>)
 >Re: How is this an "incorrect decrement of a reference count"? (From: G S <email@hidden>)

  • Prev by Date: Re: How is this an "incorrect decrement of a reference count"?
  • Next by Date: Re: How is this an "incorrect decrement of a reference count"?
  • Previous by thread: Re: How is this an "incorrect decrement of a reference count"?
  • Next by thread: Re: How is this an "incorrect decrement of a reference count"?
  • Index(es):
    • Date
    • Thread