• 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
Question about notifying KVO observers of changes to a property.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Question about notifying KVO observers of changes to a property.


  • Subject: Question about notifying KVO observers of changes to a property.
  • From: Morales Vivó Óscar <email@hidden>
  • Date: Thu, 21 May 2009 14:33:07 -0400

I have an cocoa controller object with a property that is actually read from another, C++ object. It works fine when updating or reading the value, but sometimes other C++ parts of the program will change the value of the property and there's no good way to notify the cocoa controller object of the change.

I wanted to know if it's an issue from, elsewhere in the program, just call the object's willChangeValueForKey: and didChangeValueForKey: for a property that automatically notifies when directly changed, or if there's a more immediate and officially sanctioned way of letting an object know that it should notify its observers that one of its properties has changed its value.

Thanks in advance for your help:

Óscar Morales Vivó._______________________________________________

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: Question about notifying KVO observers of changes to a property.
      • From: Peter Duniho <email@hidden>
  • Prev by Date: link to a Framework from within a sub bundle
  • Next by Date: Re: Controlling some of CoreAnimation's more confusing automation
  • Previous by thread: Re: link to a Framework from within a sub bundle [solved]
  • Next by thread: Re: Question about notifying KVO observers of changes to a property.
  • Index(es):
    • Date
    • Thread