TalkingCode
TalkingCode

Reputation: 13567

NSArrayController binding : Suppress "No selection"

I have a texfield bound to an ArrayController. The controller key is "selection" because I select items from a NSTableView. But when there are no items in the table the textfield shows the gray text "no selection".

How can I suppress this text and have just an empty textfield? Or how can I change the "No selection" text to something else?

Upvotes: 1

Views: 601

Answers (1)

Rob Keniger
Rob Keniger

Reputation: 46020

In the bindings inspector in Interface Builder, set the No Selection Placeholder to be a space character.

Upvotes: 5

Related Questions