Hi everyone,

I'm recreating a rules interface (ie, under these conditions, perform those 
actions).  I have an NSPredicateEditor in place for the conditions portion, and 
it's working great.  However, I'm wondering what would be most appropriate to 
use for the actions area.

My initial reaction would be "NSRuleEditor", except I'm not sure how I'd 
integrate it.  The documentation for NSRuleEditor is full of stuff about 
criteria and whatnot, and I'm not really sure how that applies.  If I could get 
it to work, I think NSRuleEditor would be the best option because of the visual 
consistency between it and the predicate editor.

My next reaction would be to use an NSPredicateEditor, but disallow compound 
predicates (except for the initial "AND").   I'm familiar with 
NSPredicateEditor, so this (I think) would be the "easiest" option.  It also 
(obviously) has the advantage of visual consistency with the other predicate 
editor.

I then thought I could build one using an NSTableView, but that seems overly 
complex and overkill, and it wouldn't necessarily be visually consistent with 
the predicate editor (without some serious graphics work).

So:  Is NSRuleEditor the thing to use?  If so, how?

Thanks,

Dave

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