Re: NSPredicateEditorRowTemplate and dynamic templateViews
Re: NSPredicateEditorRowTemplate and dynamic templateViews
- Subject: Re: NSPredicateEditorRowTemplate and dynamic templateViews
- From: Dave DeLong <email@hidden>
- Date: Fri, 12 Mar 2010 15:18:48 -0700
This seems so obvious in retrospect that I can't believe I didn't think of that.
Thank you so much!
Dave
On Mar 12, 2010, at 2:57 PM, Peter Ammon wrote:
> What you want to do here is to create two separate templates. One "looks like" this:
>
> [Creation Date, Modification Date] [=, !=, <, <=, >, >=] {NSDatePicker}
>
> The other looks like this:
>
> [Creation Date, Modification Date] [in the last] {NSTextField} [days, weeks, months]
>
>
> The first template is responsible for predicates with the standard operators, and the second one is responsible for predicates with the custom operator. At runtime, NSPredicateEditor will merge the templates together, and the second popup will show a union of all the operators of your date templates.
>
> Hope that helps,
> -Peter
>
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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