Re: NSPredicateEditorRowTemplate and dynamic templateViews

2010-03-30 Thread Dave DeLong
I'm still struggling with this. Does anyone know how I can either: 1. Use custom comparators in an NSPredicateEditorRowTemplate or 2. Have two templates with the same left expression and operator, but different right expression types? Thanks, Dave On Mar 12, 2010, at 7:29 PM, Dave DeLong wr

Re: NSPredicateEditorRowTemplate and dynamic templateViews

2010-03-12 Thread Dave DeLong
OK, continuing this thread on a related note: My date row templates allow me to do: "aDate is after aSpecificDate" and "aDate is in the last 30 days" Both of these are technically: "aDate > anotherDate" When I -init these custom row templates, I need to pass in an array of operators. I can't

Re: NSPredicateEditorRowTemplate and dynamic templateViews

2010-03-12 Thread Dave DeLong
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]

Re: NSPredicateEditorRowTemplate and dynamic templateViews

2010-03-12 Thread Peter Ammon
On Mar 12, 2010, at 1:47 PM, Dave DeLong wrote: > Hi everyone, > > I'm trying to build a custom predicate editor row template that lets me do > predicates like "in the last 30 days" or "since {aDate}". For the simple > date comparison, I'm returning an NSDatePicker as the third view in my >

NSPredicateEditorRowTemplate and dynamic templateViews

2010-03-12 Thread Dave DeLong
Hi everyone, I'm trying to build a custom predicate editor row template that lets me do predicates like "in the last 30 days" or "since {aDate}". For the simple date comparison, I'm returning an NSDatePicker as the third view in my templateViews. My problem is that I only want to return the NS