From 531ad373b2c22e00a341a6635023cf8949571bd5 Mon Sep 17 00:00:00 2001 From: "SND\\MaddTheSane_cp" Date: Thu, 22 Aug 2013 23:53:37 +0000 Subject: Moving most of the OS X preferences to auto layout, and all to 10.7. Changing some lists of independent checkbox buttons to matrices. Fix a discrepancy between SDL versions 1.2 and 2.0 APIs in OS X's input preferences. git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@86849 e17a0e51-4ae3-4d35-97c3-1a29b211df97 --- .../English.lproj/NetSfPeopsSpuPluginMain.xib | 1786 +++++++++++++++++--- macosx/plugins/DFSound/macsrc/PluginController.m | 40 +- .../plugins/DFSound/macsrc/SPUPluginController.h | 8 +- .../plugins/DFSound/macsrc/SPUPluginController.m | 18 +- 4 files changed, 1567 insertions(+), 285 deletions(-) (limited to 'macosx/plugins/DFSound') diff --git a/macosx/plugins/DFSound/Resorces/Shared/English.lproj/NetSfPeopsSpuPluginMain.xib b/macosx/plugins/DFSound/Resorces/Shared/English.lproj/NetSfPeopsSpuPluginMain.xib index 86afd475..6deb8a23 100644 --- a/macosx/plugins/DFSound/Resorces/Shared/English.lproj/NetSfPeopsSpuPluginMain.xib +++ b/macosx/plugins/DFSound/Resorces/Shared/English.lproj/NetSfPeopsSpuPluginMain.xib @@ -1,7 +1,7 @@ - 1060 + 1070 12E55 3084 1187.39 @@ -11,10 +11,12 @@ 3084 + IBNSLayoutConstraint NSBox NSButton NSButtonCell NSCustomObject + NSMatrix NSSlider NSSliderCell NSTextField @@ -70,6 +72,7 @@ + {250, 750} YES 67108864 @@ -140,6 +143,7 @@ + {250, 750} YES 67108864 @@ -182,10 +186,11 @@ 256 - {{274, 83}, {133, 17}} + {{274, 86}, {133, 17}} + {250, 750} YES 67108864 @@ -205,10 +210,11 @@ 256 - {{274, 51}, {133, 17}} + {{274, 54}, {133, 17}} + {250, 750} YES 67108864 @@ -224,10 +230,11 @@ 256 - {{13, 21}, {96, 17}} + {{14, 26}, {96, 17}} + {250, 750} YES 67108864 @@ -243,7 +250,7 @@ 256 - {{127, 19}, {144, 26}} + {{127, 20}, {144, 26}} @@ -270,10 +277,11 @@ 256 - {{274, 18}, {133, 17}} + {{274, 26}, {133, 17}} + {250, 750} YES 67108864 @@ -334,10 +342,10 @@ 256 - {{21, 60}, {153, 18}} + {{15, 57}, {153, 18}} - + YES 67108864 @@ -358,13 +366,13 @@ NO - {{2, 2}, {189, 96}} + {{2, 2}, {199, 83}} - {{256, 56}, {193, 113}} + {{246, 69}, {203, 100}} @@ -394,91 +402,94 @@ 274 - + 256 - {{18, 58}, {199, 18}} + {{17, 13}, {199, 60}} - YES - - 67108864 - 0 - High Compatibility Mode - - - 1211912448 - 2 - - NSImage - NSSwitch - - - - - 200 - 25 - - NO - - - - 256 - {{18, 38}, {199, 18}} - - - - YES - - 67108864 - 0 - SPU IRQ Wait - - - 1211912448 - 2 - - - - - 200 - 25 - NO - - - - 256 - {{18, 16}, {199, 18}} - - - - YES - + 3 + 1 + + + 67108864 + 0 + High Compatibility Mode + + + 1211912448 + 2 + + NSImage + NSSwitch + + + + + 200 + 25 + + + 67108864 + 0 + SPU IRQ Wait + + + 1211912448 + 2 + + + + + 200 + 25 + + + 67108864 + 0 + Mono Sound + + + 1211912448 + 2 + + + + 200 + 25 + + + {199, 18} + {0, 3} + -2080366592 + + 67108864 0 - Mono Sound + High Compatibility Mode - 1211912448 2 - 200 25 - NO + -1 + -1 + + - {{2, 2}, {224, 96}} + {{2, 2}, {223, 83}} - + - {{17, 56}, {228, 113}} + {{17, 69}, {227, 100}} @@ -500,23 +511,24 @@ 2 NO - + - 256 - {{330, 12}, {122, 32}} + 268 + {{393, 13}, {59, 32}} + _NS:9 YES - + 67108864 134217728 OK - + _NS:9 + -2038284288 - 1 - + 129 DQ 200 @@ -524,23 +536,24 @@ NO - + - 256 - {{208, 12}, {122, 32}} + 268 + {{311, 13}, {82, 32}} - + + _NS:9 YES - + 67108864 134217728 Cancel - + _NS:9 + -2038284288 - 1 - + 129 Gw 200 @@ -548,23 +561,24 @@ NO - + - 256 - {{14, 12}, {122, 32}} + 268 + {{14, 13}, {75, 32}} - + + _NS:9 YES - + 67108864 134217728 Reset - + _NS:9 + -2038284288 - 1 - + 129 200 @@ -594,30 +608,6 @@ 39 - - - ok: - - - - 60 - - - - cancel: - - - - 61 - - - - reset: - - - - 63 - reverbValue @@ -650,29 +640,53 @@ 66 + + + reset: + + + + 175 + + + + ok: + + + + 176 + + + + cancel: + + + + 177 + hiCompBox - + - 54 + 203 irqWaitBox - + - 56 + 204 monoSoundBox - + - 57 + 205 @@ -698,14 +712,6 @@ 44 - - - nextKeyView - - - - 45 - takeStringValueFrom: @@ -722,38 +728,6 @@ 42 - - - nextKeyView - - - - 50 - - - - nextKeyView - - - - 47 - - - - nextKeyView - - - - 51 - - - - nextKeyView - - - - 52 - nextKeyView @@ -804,12 +778,268 @@ 5 - + + + 5 + 0 + + 6 + 1 + + 12 + + 1000 + + 6 + 24 + 3 + + + + 6 + 0 + + 6 + 1 + + 20 + + 1000 + + 8 + 29 + 3 + + + + 4 + 0 + + 4 + 1 + + 20 + + 1000 + + 8 + 29 + 3 + + + + 4 + 0 + + 4 + 1 + + 20 + + 1000 + + 8 + 29 + 3 + + + + 5 + 0 + + 5 + 1 + + 249 + + 1000 + + 3 + 9 + 3 + + + + 5 + 0 + + 6 + 1 + + 8 + + 1000 + + 6 + 24 + 3 + + + + 3 + 0 + + 4 + 1 + + 8 + + 1000 + + 6 + 24 + 3 + + + + 6 + 0 + + 6 + 1 + + 20 + + 1000 + + 8 + 29 + 3 + + + + 4 + 0 + + 4 + 1 + + 20 + + 1000 + + 8 + 29 + 3 + + + + 5 + 0 + + 5 + 1 + + 20 + + 1000 + + 8 + 29 + 3 + + + + 11 + 0 + + 11 + 1 + + 0.0 + + 1000 + + 6 + 24 + 2 + + + + 3 + 0 + + 4 + 1 + + 8 + + 1000 + + 6 + 24 + 3 + + + + 5 + 0 + + 5 + 1 + + 20 + + 1000 + + 8 + 29 + 3 + + + + 3 + 0 + + 3 + 1 + + 20 + + 1000 + + 8 + 29 + 3 + + + + 5 + 0 + + 5 + 1 + + 20 + + 1000 + + 8 + 29 + 3 + + + + 6 + 0 + + 6 + 1 + + 20 + + 1000 + + 8 + 29 + 3 + + + + + - - - @@ -821,10 +1051,426 @@ + + + 11 + 0 + + 11 + 1 + + 0.0 + + 1000 + + 6 + 24 + 2 + + + + 6 + 0 + + 6 + 1 + + 0.0 + + 1000 + + 6 + 24 + 2 + + + + 5 + 0 + + 6 + 1 + + 8 + + 1000 + + 6 + 24 + 3 + + + + 11 + 0 + + 11 + 1 + + 0.0 + + 1000 + + 6 + 24 + 2 + + + + 5 + 0 + + 6 + 1 + + 8 + + 1000 + + 6 + 24 + 3 + + + + 5 + 0 + + 6 + 1 + + 8 + + 1000 + + 6 + 24 + 3 + + + + 5 + 0 + + 5 + 1 + + 0.0 + + 1000 + + 6 + 24 + 2 + + + + 3 + 0 + + 3 + 1 + + 0.0 + + 1000 + + 6 + 24 + 2 + + + + 11 + 0 + + 11 + 1 + + 0.0 + + 1000 + + 6 + 24 + 2 + + + + 5 + 0 + + 6 + 1 + + 8 + + 1000 + + 6 + 24 + 3 + + + + 6 + 0 + + 6 + 1 + + 0.0 + + 1000 + + 6 + 24 + 2 + + + + 4 + 0 + + 4 + 1 + + 20 + + 1000 + + 3 + 9 + 3 + + + + 10 + 0 + + 10 + 1 + + 0.0 + + 1000 + + 6 + 24 + 2 + + + + 3 + 0 + + 4 + 1 + + 8 + + 1000 + + 6 + 24 + 3 + + + + 5 + 0 + + 5 + 1 + + 0.0 + + 1000 + + 6 + 24 + 2 + + + + 3 + 0 + + 4 + 1 + + 8 + + 1000 + + 6 + 24 + 3 + + + + 11 + 0 + + 11 + 1 + + 0.0 + + 1000 + + 6 + 24 + 2 + + + + 5 + 0 + + 5 + 1 + + 0.0 + + 1000 + + 6 + 24 + 2 + + + + 3 + 0 + + 3 + 1 + + 32 + + 1000 + + 9 + 40 + 3 + + + + 5 + 0 + + 5 + 1 + + 128 + + 1000 + + 3 + 9 + 3 + + + + 11 + 0 + + 11 + 1 + + 0.0 + + 1000 + + 6 + 24 + 2 + + + + 5 + 0 + + 5 + 1 + + 16 + + 1000 + + 8 + 29 + 3 + + + + 3 + 0 + + 3 + 1 + + 0.0 + + 1000 + + 6 + 24 + 2 + + + + 6 + 0 + + 6 + 1 + + 0.0 + + 1000 + + 6 + 24 + 2 + + + + 5 + 0 + + 5 + 1 + + 15 + + 1000 + + 3 + 9 + 3 + + + + 5 + 0 + + 5 + 1 + + 0.0 + + 1000 + + 6 + 24 + 2 + + - @@ -833,6 +1479,38 @@ 19 + + + 5 + 0 + + 5 + 1 + + 16 + + 1000 + + 8 + 29 + 3 + + + + 3 + 0 + + 3 + 1 + + 25 + + 1000 + + 8 + 29 + 3 + @@ -841,51 +1519,58 @@ 24 - - - - - - - - 37 - - - - - - - - 38 - - - - - - - - 62 - - - + + + 4 + 0 + + 4 + 1 + + 11 + + 1000 + + 8 + 29 + 3 + + + + 5 + 0 + + 5 + 1 + + 16 + + 1000 + + 8 + 29 + 3 + + + + 3 + 0 + + 3 + 1 + + 25 + + 1000 + + 8 + 29 + 3 + + - - 93 - - - - - 94 - - - - - 95 - - - -3 @@ -897,6 +1582,38 @@ + + + 8 + 0 + + 0 + 1 + + 17 + + 1000 + + 3 + 9 + 1 + + + + 7 + 0 + + 0 + 1 + + 90 + + 1000 + + 3 + 9 + 1 + @@ -910,6 +1627,22 @@ + + + 7 + 0 + + 0 + 1 + + 140 + + 1000 + + 3 + 9 + 1 + @@ -923,6 +1656,22 @@ + + + 8 + 0 + + 0 + 1 + + 17 + + 1000 + + 3 + 9 + 1 + @@ -949,6 +1698,22 @@ + + + 7 + 0 + + 0 + 1 + + 127 + + 1000 + + 3 + 9 + 1 + @@ -975,6 +1740,22 @@ + + + 7 + 0 + + 0 + 1 + + 90 + + 1000 + + 3 + 9 + 1 + @@ -1001,6 +1782,22 @@ + + + 8 + 0 + + 0 + 1 + + 17 + + 1000 + + 3 + 9 + 1 + @@ -1014,6 +1811,22 @@ + + + 7 + 0 + + 0 + 1 + + 149 + + 1000 + + 3 + 9 + 1 + @@ -1023,43 +1836,349 @@ - 25 - + 107 + + + + + 108 + + + + + 109 + + + + + 111 + + + + + 112 + + + + + 122 + + + + + 127 + + + + + 129 + + + + + 131 + + + + + 133 + + + + + 134 + + + + + 136 + + + + + 137 + + + + + 140 + + + + + 141 + + + + + 145 + + + + + 147 + + + + + 148 + + + + + 149 + + + + + 150 + + + + + 151 + + + + + 152 + + + + + 153 + + + + + 154 + + + + + 157 + + + + + 162 + - + - + - 90 - - + 163 + + + + + 164 + + - 26 - + 165 + + + + + 166 + - + - + - 91 - - + 167 + + + + + 169 + + + + + 170 + + + + + 171 + + + + + - 33 - + 172 + + + + + 173 + + + + + 174 + + + + + 180 + + + + + 181 + + + + + 182 + + + + + 183 + + + + + 186 + + + + + 188 + + + + + 189 + + + + + 191 + + + + + 193 + + + + + 194 + + + + + 195 + + + + + 196 + + + + + + 197 + + + 92 - + + + + 91 + + + + + 90 + + + + + 206 + + + + + 207 + + + + + 209 + + + + + 210 + + + + + 213 + + + + + 214 + + + + + 222 + + + + + 224 + + + + + 225 + + + + + 226 + + + + + 227 + + + + + 228 + + + + + 229 + + @@ -1067,44 +2186,150 @@ com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + + + + + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin NamedSlider + + + + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + + + + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin NamedSlider + com.apple.InterfaceBuilder.CocoaPlugin + + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + + + + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + + + + + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + + + + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + + + + + + com.apple.InterfaceBuilder.CocoaPlugin - - ToolTip - - ToolTip - - Should always be enabled. Only disable this option if the emulator doesn't support the SPUupdate/async plugin interface. - - - com.apple.InterfaceBuilder.CocoaPlugin - - ToolTip - - ToolTip - - When enabled the plugin will waits for CPU action which a few games requires (Metal Gears Solid + others) - - - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin + + + + + + + + + + + + + + + + + + com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin + + + + com.apple.InterfaceBuilder.CocoaPlugin NamedSlider + com.apple.InterfaceBuilder.CocoaPlugin + + + + com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin @@ -1116,22 +2341,56 @@ com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin + + + + + + + + + + + + + + + + + + + + + + + + + + + + + com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - 95 + 232 + + NSLayoutConstraint + NSObject + + IBProjectSource + ./Classes/NSLayoutConstraint.h + + NamedSlider NSSlider @@ -1163,10 +2422,10 @@ - NSControl + NSCell NamedSlider - NSControl - NSControl + NSCell + NSCell NamedSlider NamedSlider NSControl @@ -1175,7 +2434,7 @@ hiCompBox - NSControl + NSCell interpolValue @@ -1183,11 +2442,11 @@ irqWaitBox - NSControl + NSCell monoSoundBox - NSControl + NSCell reverbValue @@ -1217,7 +2476,7 @@ IBCocoaFramework com.apple.InterfaceBuilder.CocoaPlugin.macosx - + YES 3 @@ -1225,5 +2484,6 @@ NSSwitch {15, 15} + YES diff --git a/macosx/plugins/DFSound/macsrc/PluginController.m b/macosx/plugins/DFSound/macsrc/PluginController.m index 88d23d03..c323967d 100755 --- a/macosx/plugins/DFSound/macsrc/PluginController.m +++ b/macosx/plugins/DFSound/macsrc/PluginController.m @@ -44,6 +44,15 @@ extern char* PLUGLOC(char* toloc); static SPUPluginController *pluginController = nil; +static inline void RunOnMainThreadSync(dispatch_block_t block) +{ + if ([NSThread isMainThread]) { + block(); + } else { + dispatch_sync(dispatch_get_main_queue(), block); + } +} + void DoAbout() { // Get parent application instance @@ -81,18 +90,20 @@ void DoAbout() long DoConfiguration() { - NSWindow *window; - - if (pluginController == nil) { - pluginController = [[PluginController alloc] initWithWindowNibName:@"NetSfPeopsSpuPluginMain"]; - } - window = [pluginController window]; - - /* load values */ - [pluginController loadValues]; - - [window center]; - [window makeKeyAndOrderFront:nil]; + RunOnMainThreadSync(^{ + NSWindow *window; + + if (pluginController == nil) { + pluginController = [[PluginController alloc] initWithWindowNibName:@"NetSfPeopsSpuPluginMain"]; + } + window = [pluginController window]; + + /* load values */ + [pluginController loadValues]; + + [window center]; + [window makeKeyAndOrderFront:nil]; + }); return 0; } @@ -137,7 +148,7 @@ void ReadConfig(void) { NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; - NSMutableDictionary *writeDic = [NSMutableDictionary dictionaryWithDictionary:keyValues]; + NSMutableDictionary *writeDic = [NSMutableDictionary dictionaryWithDictionary:self.keyValues]; [writeDic setObject:@((BOOL)[hiCompBox intValue]) forKey:@"High Compatibility Mode"]; [writeDic setObject:@((BOOL)[irqWaitBox intValue]) forKey:@"SPU IRQ Wait"]; [writeDic setObject:@((BOOL)[monoSoundBox intValue]) forKey:@"Mono Sound Output"]; @@ -172,8 +183,7 @@ void ReadConfig(void) ReadConfig(); /* load from preferences */ - RELEASEOBJ(keyValues); - keyValues = [[defaults dictionaryForKey:PrefsKey] mutableCopy]; + self.keyValues = [NSMutableDictionary dictionaryWithDictionary:[defaults dictionaryForKey:PrefsKey]]; [hiCompBox setIntValue:[[keyValues objectForKey:@"High Compatibility Mode"] boolValue]]; [irqWaitBox setIntValue:[[keyValues objectForKey:@"SPU IRQ Wait"] boolValue]]; diff --git a/macosx/plugins/DFSound/macsrc/SPUPluginController.h b/macosx/plugins/DFSound/macsrc/SPUPluginController.h index e6a61308..53b64aec 100644 --- a/macosx/plugins/DFSound/macsrc/SPUPluginController.h +++ b/macosx/plugins/DFSound/macsrc/SPUPluginController.h @@ -8,13 +8,14 @@ #import #import "NamedSlider.h" +#import "ARCBridge.h" @interface SPUPluginController : NSWindowController { - IBOutlet NSControl *hiCompBox; + IBOutlet NSCell *hiCompBox; IBOutlet NamedSlider *interpolValue; - IBOutlet NSControl *irqWaitBox; - IBOutlet NSControl *monoSoundBox; + IBOutlet NSCell *irqWaitBox; + IBOutlet NSCell *monoSoundBox; IBOutlet NamedSlider *reverbValue; IBOutlet NSControl *xaEnableBox; IBOutlet NSControl *xaSpeedBox; @@ -22,6 +23,7 @@ NSMutableDictionary *keyValues; } +@property (readwrite, arcretain) NSMutableDictionary *keyValues; - (IBAction)cancel:(id)sender; - (IBAction)ok:(id)sender; - (IBAction)reset:(id)sender; diff --git a/macosx/plugins/DFSound/macsrc/SPUPluginController.m b/macosx/plugins/DFSound/macsrc/SPUPluginController.m index bb225b51..83598618 100644 --- a/macosx/plugins/DFSound/macsrc/SPUPluginController.m +++ b/macosx/plugins/DFSound/macsrc/SPUPluginController.m @@ -8,9 +8,7 @@ #import "SPUPluginController.h" -@implementation SPUPluginController - -static Class GetSPUBaseClass() +static inline Class GetSPUBaseClass() { static Class spuBaseClass; if (!spuBaseClass) { @@ -19,7 +17,7 @@ static Class GetSPUBaseClass() return spuBaseClass; } -static inline void FuncNotAvailable(id sel, id sender, SEL theCmd) +static void FuncNotAvailable(id sel, id sender, SEL theCmd) { #ifdef DEBUG NSString *selString = NSStringFromSelector(theCmd); @@ -39,6 +37,9 @@ static inline void FuncNotAvailable(id sel, id sender, SEL theCmd) #define NotAvailableWarn(sender) FuncNotAvailable(self, sender, _cmd) +@implementation SPUPluginController +@synthesize keyValues; + - (IBAction)cancel:(id)sender { NotAvailableWarn(sender); @@ -59,4 +60,13 @@ static inline void FuncNotAvailable(id sel, id sender, SEL theCmd) NotAvailableWarn(nil); } +#if !__has_feature(objc_arc) +- (void)dealloc +{ + self.keyValues = nil; + + [super dealloc]; +} +#endif + @end -- cgit v1.2.3