• 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: key value observing stops
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: key value observing stops


  • Subject: Re: key value observing stops
  • From: Allan Odgaard <email@hidden>
  • Date: Tue, 24 Feb 2004 09:56:07 +0100

On 24. Feb 2004, at 9:01, Francisco Tolmasky wrote:

For some reason my key value observing stops after successive calls. [...]

Since KVO is not based on fuzzy logic, the problem is most likely that you do something wrong elsewhere -- so it would be useful if you posted your code.

Though one problem could be that you are setting the same value. E.g.

[obj2 bind:@"Something" toObject:obj1 withKeyPath:@"Something" options:nil];
[obj1 setSomething:foo]; // will also set in obj2
[obj1 setSomething:foo]; // will skip "notification"

It might be more indirect, e.g. if you set an array, make changes to that array and set it again, it will not be considered a new value (if the setter only retains the array).
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
  • Follow-Ups:
    • Re: key value observing stops
      • From: Francisco Tolmasky <email@hidden>
References: 
 >key value observing stops (From: Francisco Tolmasky <email@hidden>)

  • Prev by Date: Re: sheet not attaching to parent?
  • Next by Date: Bindings, "behind the scenes" theory...
  • Previous by thread: key value observing stops
  • Next by thread: Re: key value observing stops
  • Index(es):
    • Date
    • Thread