[kit] Set target on menu items -- no action yet
This commit is contained in:
parent
3accaef16e
commit
e7e168ba79
1 changed files with 2 additions and 0 deletions
|
@ -31,7 +31,9 @@ class PreferencesViewController: NSViewController {
|
|||
|
||||
let menu = NSMenu()
|
||||
for item in PreferencesViewController.styleItems {
|
||||
// TODO: Set action here.
|
||||
let menuItem = NSMenuItem(title: item.name, action: nil, keyEquivalent: "")
|
||||
menuItem.target = self
|
||||
menuItem.tag = item.tag
|
||||
menu.addItem(menuItem)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue