diff --git a/AVRsack/ASApplication.swift b/AVRsack/ASApplication.swift index 80ebeb5..5e7db02 100644 --- a/AVRsack/ASApplication.swift +++ b/AVRsack/ASApplication.swift @@ -16,7 +16,7 @@ class ASApplication: NSObject, NSApplicationDelegate { func applicationDidFinishLaunching(aNotification: NSNotification) { themeMenu.removeAllItems() for (index, theme) in enumerate(ACEThemeNames.humanThemeNames() as [NSString]) { - let menuItem = themeMenu.addItemWithTitle(theme, action: "setTheme:", keyEquivalent: "") + let menuItem = themeMenu.addItemWithTitle(theme, action: "changeTheme:", keyEquivalent: "") menuItem!.tag = index } keyboardMenu.removeAllItems() diff --git a/AVRsack/ASProjDoc.swift b/AVRsack/ASProjDoc.swift index 7fb9b05..9838868 100644 --- a/AVRsack/ASProjDoc.swift +++ b/AVRsack/ASProjDoc.swift @@ -186,7 +186,7 @@ class ASProjDoc: NSDocument, NSOutlineViewDelegate { // MARK: Editor configuration - @IBAction func setTheme(item: NSMenuItem) { + @IBAction func changeTheme(item: NSMenuItem) { currentTheme = UInt(item.tag) editor.setTheme(currentTheme) NSUserDefaults.standardUserDefaults().setObject( @@ -202,7 +202,7 @@ class ASProjDoc: NSDocument, NSOutlineViewDelegate { override func validateUserInterfaceItem(anItem: NSValidatedUserInterfaceItem) -> Bool { if let menuItem = anItem as? NSMenuItem { - if menuItem.action == "setTheme:" { + if menuItem.action == "changeTheme:" { menuItem.state = (menuItem.tag == Int(currentTheme) ? NSOnState : NSOffState) return true } else if menuItem.action == "changeKeyboardHandler:" {