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 19:29:14 -0700
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 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?
Thanks!
Dave DeLong
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