• 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: Michael Petnuch <email@hidden>
  • Date: Fri, 23 Sep 2005 01:04:20 -0400

Wow. I can't believed I missed that. I guess that's what I get for using auto-complete to hastily in XCode. Thanks.

Thanks Daniel.

On Sep 23, 2005, at 12:58 AM, Daniel Jalkut wrote:

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
References: 
 >Compound KeyPaths (From: Michael Petnuch <email@hidden>)
 >Re: Compound KeyPaths (From: Daniel Jalkut <email@hidden>)

  • Prev by Date: Re: Compound KeyPaths
  • Next by Date: Fwd: Not attaching Mail.App plug-in
  • Previous by thread: Re: Compound KeyPaths
  • Next by thread: Backup 3 / QuickPicks / DefinitionPlist.strings
  • Index(es):
    • Date
    • Thread