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 wrote:

> 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 init both of these templates with a GreaterThan operator 
> (I tried, and it complained).  There's an operator listed in the 
> documentation, "NSCustomSelectorPredicateOperatorType", which is presumably 
> used with an NSComparisonPredicate, but there's very very little in there 
> about how to use that from within an NSPredicateEditorRowTemplate.  Can that 
> operator type be used in a EditorRowTemplate (my attempts to do so have 
> resulted in HIToolbox generating an Unknown Predicate Type exception)?  If 
> not, how can I have two different kinds of "greater than" comparisons in the 
> same row template?

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to