• 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: Quincey Morris <email@hidden>
  • Date: Thu, 28 Jan 2010 09:45:35 -0800

On Jan 28, 2010, at 04:57, Richard Somers wrote:

> - (void)awakeFromNib
> {
>    [self bind:@"array"
>      toObject:arrayController
>   withKeyPath:@"arrangedObjects"
>       options:nil];
>
>    [arrayController addObserver:self
>                      forKeyPath:@"arrangedObjects.changed"
>                         options:NSKeyValueObservingOptionNew
>                         context:self];
> }

Could you maybe say what you're trying to do here? As is, this code looks completely and utterly wrong. "array" is an instance variable (and, by default, perhaps a property, but it's not a binding, AND the direction of the dependency looks unlikely. "arrangedObjects.changed" doesn't look like something you can observe. Maybe there is more code elsewhere that clarifies this.

Did you check the log for exception messages?


_______________________________________________

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: NSKeyValueBindingCreation Leak
      • From: Richard Somers <email@hidden>
References: 
 >NSKeyValueBindingCreation Leak (From: Richard Somers <email@hidden>)

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