NSPopUpButton placeholder value?
-
10-10-2019 - |
문제
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?
해결책
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.
제휴하지 않습니다 StackOverflow