Re: Compound KeyPaths
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