• 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
Re: NSPredicateEditorRowTemplate and dynamic templateViews
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: NSPredicateEditorRowTemplate and dynamic templateViews
      • From: Dave DeLong <email@hidden>
References: 
 >NSPredicateEditorRowTemplate and dynamic templateViews (From: Dave DeLong <email@hidden>)
 >Re: NSPredicateEditorRowTemplate and dynamic templateViews (From: Peter Ammon <email@hidden>)

  • Prev by Date: Re: Clicking on an NSColorWell
  • Next by Date: Re: Use of KVC Array operators
  • Previous by thread: Re: NSPredicateEditorRowTemplate and dynamic templateViews
  • Next by thread: Re: NSPredicateEditorRowTemplate and dynamic templateViews
  • Index(es):
    • Date
    • Thread