Need dummy title item in pulldown menu buttons

This commit is contained in:
Matthias Neeracher 2015-06-07 02:31:21 +02:00 committed by Matthias Neeracher
parent edd9987743
commit b382467226

View File

@ -106,6 +106,7 @@ class ASHardware {
func buildMenu(menu:NSMenu, choices:ASProperties, recentChoices:[String], target: AnyObject, selector: Selector) {
menu.removeAllItems()
menu.addItemWithTitle("Title", action: "", keyEquivalent: "")
if choices.count <= 10 {
menu.addSortedChoices([ASPropertyEntry](choices.values), target: target, selector: selector)
} else {