NSPredicate & Editor questions
NSPredicate & Editor questions
- Subject: NSPredicate & Editor questions
- From: Dave DeLong <email@hidden>
- Date: Tue, 11 Aug 2009 18:51:33 -0600
Hey everyone,
I'm about to embark on understanding NSRule/PredicateEditors but
before I get too deep into the code, I wanted to ask a couple questions.
I'm hoping to create an interface whereby the user can create an
NSPredicate and then come back and edit it later. From what I've
understood from the documentation and PredicateEditorSample, it seems
that the appropriate way to do this would be to construct an
NSCompoundPredicate from the editor. That way when the user goes to
edit the predicate, I can easily break it up into its constituent
parts by using the -subpredicates method of NSCompoundPredicate. Is
that correct?
If that is correct, would I then have to determine with
NSPredicateEditorRowTemplate I'd need to use by examining the
subpredicate itself?
Or is there a simpler way to do this?
I appreciate any insight you have.
Thanks!
Dave DeLong
_______________________________________________
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