User-friendly representation of keyPath expressions for NSPredicateEditor
User-friendly representation of keyPath expressions for NSPredicateEditor
- Subject: User-friendly representation of keyPath expressions for NSPredicateEditor
- From: Jarret Hardie <email@hidden>
- Date: Sun, 20 Jan 2008 12:47:27 -0500
I'm creating NSPredicateEditor and NSPredicateEditorRowTemplates in
code as the key paths for my left-hand expressions are dynamic and not
known until run time. The row template is made using an array of key
path expressions that look like:
[NSExpression expressionForKeyPath:[... lookup to get dynamic keypath
string here ...]]
The new NSPredicateEditor view is a convenience dream, and the app
works beautifully, but the left PopUpButton button that is rendered in
the NSPredicateEditor view contains the literal key path
"someKeyPath". In IB, it's easy to double-click on the pop-up button
in the row template and provide a user-friendly substitution like "Not
A Key Path Accessor".
Is there an efficient way to do this in code when I'm creating my row
templates, or should I be subclassing NSPredicateEditorRowTemplate to
override templateViews?
Many thanks,
Jarret
_______________________________________________
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