NSPredicateEditorRowTemplate and NSTokenField

2009-01-30 Thread Vitaly Ovchinnikov
Hello all, that's me again with my predicate editor problems :) I subclassed predicate editor's row and replaced default text editor with my NSTokenField in -templateViews. Predicates, that match my template, look like: ANY Tags IN {tag1, tag2, tag3} In -setPredicate I fill token field with

Re: NSPredicateEditorRowTemplate and NSTokenField

2009-01-30 Thread Vitaly Ovchinnikov
I finally found a solution that seems to work. I subclassed NSTokenField: == @implementation MyTokenField - (void) notifyTarget: (id) sender { NSControl *t = [self target]; [t sendAction:nil to:t]; } - (void)textDidEndEditing:(NSNotification *)aNotification {