Question

Notice in Xcode's symbols list (the NSPopUpButton directly above the editor, to the right of the recently edited documents), it shows <No selected symbol> when you're out of scope of any symbols it lists, but then when you click on it that option is not there. Is there a trick to making this "placeholder" magic happen, or is there a setter somewhere I'm not seeing?

Placeholder text Not actually a menu item

Was it helpful?

Solution

If you're using bindings, you can set null/no selection placeholders and turn on "Inserts Null placeholder" using Interface Builder's bindings inspector. If you're not using bindings, you can put whatever menu item in there you like at runtime.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top