• 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: rewriting observed keyPath
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: rewriting observed keyPath


  • Subject: Re: rewriting observed keyPath
  • From: Kyle Sluder <email@hidden>
  • Date: Tue, 15 Feb 2011 11:27:34 -0800

On Tue, Feb 15, 2011 at 11:09 AM, Remco Poelstra <email@hidden> wrote:
> Thanks for your reply.
> The problem with this solution is that when I do a setValue:object
> forKeyPath:@"preset0.parameter", and @"preset0" is the current preset, than
> no KVO message is sent to observers observing the @"current" variant of the
> keyPath. That would only happen, if they used the actual
> @"current.parameters" keyPath.
> Maybe KVO doesn't support this at all, I'm just hope it will :)

As long as -current and -preset0 return the same object, and that
object is KVO-compliant for @"parameters", then observing
@"current.parameters" and @"preset0.parameters" are equivalent.

--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

  • Follow-Ups:
    • Re: rewriting observed keyPath
      • From: Quincey Morris <email@hidden>
References: 
 >rewriting observed keyPath (From: Remco Poelstra <email@hidden>)
 >Re: rewriting observed keyPath (From: Quincey Morris <email@hidden>)
 >Re: rewriting observed keyPath (From: Remco Poelstra <email@hidden>)

  • Prev by Date: Re: iPhone UISearchDisplayController how to handle memory warning
  • Next by Date: Re: converting app to a document based app
  • Previous by thread: Re: rewriting observed keyPath
  • Next by thread: Re: rewriting observed keyPath
  • Index(es):
    • Date
    • Thread