Specializing NSPredicateEditor

Steve Mills

Can anyone think of a way to subclass NSPredicateEditor so a shift-click in the + button will cause the same template as the clicked row to be inserted instead of the next unused template? If there are multiple templates, the default behavior will add each one in sequence. Most of the time I want to add multiples of the same criteria type, e.g. “keyword is blah” and “keyword is gort”. Having to always change the criteria type after clicking + is bothersome.

Steve via iPhone

Join cocoa@apple-dev.groups.io to automatically receive all group messages.