FROM : Jarret Hardie
DATE : Sun Jan 20 18:47:27 2008
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
DATE : Sun Jan 20 18:47:27 2008
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
| Related mails | Author | Date |
|---|---|---|
| No related mails found. | ||






Cocoa mail archive

