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

Re: Compound KeyPaths


  • Subject: Re: Compound KeyPaths
  • From: Daniel Jalkut <email@hidden>
  • Date: Fri, 23 Sep 2005 00:58:22 -0400

Michael - I think you have to use the setValue:forKeyPath: method if you're passing a path as the target.

Daniel

On Sep 23, 2005, at 12:22 AM, Michael Petnuch wrote:

Hello everyone,

I have a question about compound keypaths. I have a class that has as its only member a NSMutableDictionary. In IB I bound to it various text fields. So the key paths that I bound to it are say properties.title or properties.name.
The problem is I have been trying to set up undo for edit in this program. When I get notified for an undo the key path it return is "properties.title". However, when I try to do:


     [object setValue: newTitle forKey: keyPath];

I get an error saying that the object is not key value compliant for the key path. So what function name was I implement for it to be able to set compound keypaths such as properties.title.

Thanks.
Michael Petnuch
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
sweater.com


This email sent to email@hidden


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Compound KeyPaths
      • From: Michael Petnuch <email@hidden>
References: 
 >Compound KeyPaths (From: Michael Petnuch <email@hidden>)

  • Prev by Date: Compound KeyPaths
  • Next by Date: Re: Compound KeyPaths
  • Previous by thread: Compound KeyPaths
  • Next by thread: Re: Compound KeyPaths
  • Index(es):
    • Date
    • Thread