From e23012ee44e26e9fd2bd43340a3fd806b084fa47 Mon Sep 17 00:00:00 2001 From: Joe Wreschnig Date: Mon, 4 Mar 2013 16:17:59 +0100 Subject: [PATCH] Turn popover activation button 'on' when the popover is up. --- English.lproj/MainMenu.xib | 18 +++++++++--------- NJMappingsController.h | 1 + NJMappingsController.m | 8 ++++++++ 3 files changed, 18 insertions(+), 9 deletions(-) diff --git a/English.lproj/MainMenu.xib b/English.lproj/MainMenu.xib index e30e982..353e905 100644 --- a/English.lproj/MainMenu.xib +++ b/English.lproj/MainMenu.xib @@ -325,19 +325,19 @@ 4AC66688-76E8-47ED-AC0A-7462220A4019 - Custom View - Custom View + Mapping Selector + Mapping Selector 268 {{0, 14}, {140, 25}} - + _NS:9 YES - -2080374784 + 67108864 134217728 (default) @@ -347,7 +347,7 @@ _NS:9 - -2034483200 + 918306816 163 NSImage @@ -375,15 +375,15 @@ 94389EFE-310F-4DB5-95F6-D4AEE8839979 - Custom View - Custom View + Translation Enabled + Translation Enabled 268 - {{5, 14}, {67, 25}} + {{23, 14}, {67, 25}} - + _NS:9 YES diff --git a/NJMappingsController.h b/NJMappingsController.h index 4867943..f0dab4f 100644 --- a/NJMappingsController.h +++ b/NJMappingsController.h @@ -12,6 +12,7 @@ @interface NJMappingsController : NSObject { IBOutlet NSButton *removeButton; diff --git a/NJMappingsController.m b/NJMappingsController.m index 193edfe..f1e068e 100644 --- a/NJMappingsController.m +++ b/NJMappingsController.m @@ -306,4 +306,12 @@ [popover showRelativeToRect:popoverActivate.bounds ofView:popoverActivate preferredEdge:NSMinXEdge]; } +- (void)popoverWillShow:(NSNotification *)notification { + popoverActivate.state = NSOnState; +} + +- (void)popoverWillClose:(NSNotification *)notification { + popoverActivate.state = NSOffState; +} + @end -- 2.30.2