CPPredicateEditor code examples

23 views
Skip to first unread message

Arjen Schipmolder

unread,
Dec 21, 2016, 8:50:56 AM12/21/16
to objec...@googlegroups.com

Hi all,

 

I believe there used to be several examples of how to use CPPredicates and CPPredicateEditor in code only but I can now only find the CPPredicateEditorCibTest unit test which uses a CIB.

Does anybody have any examples of predicates in code I could have a look at?

 

The system I’m building will need to generate itself dynamically so is quite complex and any example would be appreciated.

 

Thanks

Arjen

 

 

Cacaodev cacaodev

unread,
Dec 21, 2016, 10:56:36 AM12/21/16
to Cappuccino & Objective-J
CPPredicateEditor exists in two manual tests: CPPredicateEditorCibTest and SmartFoldersDemo. CPPredicate is tested in Tests/Foundation/.
If you need to generate dynamically the rules, then maybe what you want is CPRuleEditor where criteria are created from delegate methods.

Arjen Schipmolder

unread,
Dec 21, 2016, 12:25:23 PM12/21/16
to objec...@googlegroups.com

Perfect, the code in the RuleDelegate class of the CPRuleEditor test looks very familiar so I think that’s the code I worked with before and that should do it.

 

Thanks

Arjen

--
You received this message because you are subscribed to the Google Groups "Cappuccino & Objective-J" group.
To unsubscribe from this group and stop receiving emails from it, send an email to objectivej+...@googlegroups.com.
To post to this group, send email to objec...@googlegroups.com.
Visit this group at https://groups.google.com/group/objectivej.
For more options, visit https://groups.google.com/d/optout.

daboe01

unread,
Dec 22, 2016, 2:40:50 AM12/22/16
to Cappuccino & Objective-J
if you need KVO with the RuleEditor take a look on: https://github.com/daboe01/SPPredicateEditor
Reply all
Reply to author
Forward
0 new messages