• 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: NSKeyValueBindingCreation Leak
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSKeyValueBindingCreation Leak


  • Subject: Re: NSKeyValueBindingCreation Leak
  • From: Kyle Sluder <email@hidden>
  • Date: Thu, 28 Jan 2010 08:40:32 -0800

On Jan 28, 2010, at 5:13 AM, Richard Somers <email@hidden> wrote:

MallocDebug reports a leak, and the leak grow over time.

If you never unbind, you're probably just seeing the KVO bookkeeping taking place.


Alternatively, you're calling super's implementation of - bind:toObject:withKeyPath:options: from within your own, but not calling super's implementation of unbind:. Due to KVB's (and KVO's) pretty poor API design, correctly dealing with superclass observers is impossible. If your class implements a certain binding, it should not allow super to do so as well.

--Kyle Sluder
_______________________________________________

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


References: 
 >NSKeyValueBindingCreation Leak (From: Richard Somers <email@hidden>)
 >Re: NSKeyValueBindingCreation Leak (From: Graham Cox <email@hidden>)
 >Re: NSKeyValueBindingCreation Leak (From: Richard Somers <email@hidden>)

  • Prev by Date: Re: Forcing menu update in 10.4?
  • Next by Date: NSSlider
  • Previous by thread: Re: NSKeyValueBindingCreation Leak
  • Next by thread: Re: NSKeyValueBindingCreation Leak
  • Index(es):
    • Date
    • Thread