Re: set the label for the left hand expression / popup in an NSPredicateEditorRowTemplate?
Re: set the label for the left hand expression / popup in an NSPredicateEditorRowTemplate?
- Subject: Re: set the label for the left hand expression / popup in an NSPredicateEditorRowTemplate?
- From: Peter Ammon <email@hidden>
- Date: Wed, 13 Jan 2010 16:12:52 -0800
On Jan 13, 2010, at 3:46 PM, Mike Chambers wrote:
> [...]
> I then add this to the NSPredicateEditor, and it works as expect.
> However, the left column in the editor for this row shows
> "professions" (the key value). I want it to show "Profession". If I
> was using IB this would be very simple, as I could just rename it in
> the popup.
>
> How can I set the label for the left hand name in the editor?
You can simply change the title of the menu item in the NSPopUpButton. You can access the first popup button with [[template templateViews] objectAtIndex:0].
-Peter
_______________________________________________
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