Re: KeyPath retrieval
Re: KeyPath retrieval
- Subject: Re: KeyPath retrieval
- From: Scott Anguish <email@hidden>
- Date: Tue, 11 Jan 2005 04:13:55 -0500
On Jan 11, 2005, at 2:24 AM, John Blitch wrote:
If, for example, I bind the keyPath "properties.name" to the an
object's "value" binding, is there any way to retrieve the keyPath?
It seems like bind:toObject:withKeyPath:options: should have a
companion such as
- (NSString *)keyPathForBinding:(NSString *)binding;
that I could pass "value" to and get "properties.name" back from.
I ask because I'm trying to implement table filtering using a custom
array controller. I'd like to iterate through the columns and use
their keyPaths dynamically rather than having to hard code them into
IF statements.
You're right in that it would seem that there should be such a
beast.
However there isn't one at the moment, so you need to override
bind:... and sock those away yourself.
_______________________________________________
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