liping
liping

Reputation: 1

customizing the NSPredicateEditor

I want to customize the NSPredicateEditorRowTemplate, but I needn't the subtraction sign in the first RowTemplate, the second, and the third, like the Finder application.

Upvotes: 0

Views: 380

Answers (1)

Dave DeLong
Dave DeLong

Reputation: 243156

If you tell the NSPredicateEditor that it cannot remove all the rows in the editor, then the editor will automatically remove the (-) button when necessary.

You can do this by unchecking the "Can Remove All Rows" checkbox when editing the predicate editor in a xib, or by doing it programmatically with the -setCanRemoveAllRows: method.

Upvotes: 4

Related Questions