Need dummy title item in pulldown menu buttons
This commit is contained in:
parent
edd9987743
commit
b382467226
|
@ -106,6 +106,7 @@ class ASHardware {
|
||||||
|
|
||||||
func buildMenu(menu:NSMenu, choices:ASProperties, recentChoices:[String], target: AnyObject, selector: Selector) {
|
func buildMenu(menu:NSMenu, choices:ASProperties, recentChoices:[String], target: AnyObject, selector: Selector) {
|
||||||
menu.removeAllItems()
|
menu.removeAllItems()
|
||||||
|
menu.addItemWithTitle("Title", action: "", keyEquivalent: "")
|
||||||
if choices.count <= 10 {
|
if choices.count <= 10 {
|
||||||
menu.addSortedChoices([ASPropertyEntry](choices.values), target: target, selector: selector)
|
menu.addSortedChoices([ASPropertyEntry](choices.values), target: target, selector: selector)
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user