문제

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

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top