• 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
User-friendly representation of keyPath expressions for NSPredicateEditor
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: What happens when I call NSMakeCollectable on a CFArrayRef?
  • Next by Date: Re: How to rename a filename in uppercase
  • Previous by thread: Re: How to rename a filename in uppercase
  • Next by thread: "Easter Egg" style key combination changes
  • Index(es):
    • Date
    • Thread