From 15a535c6bf683f57852e6cbf6ecb68d4bfe79bab Mon Sep 17 00:00:00 2001 From: "SND\\MaddTheSane_cp" Date: Mon, 26 Aug 2013 18:17:24 +0000 Subject: Use NSApp instead of +[NSApplication sharedApplication] on the plug-ins. git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@86931 e17a0e51-4ae3-4d35-97c3-1a29b211df97 --- macosx/plugins/Bladesio1/macsrc/PluginConfigController.m | 3 +-- macosx/plugins/DFCdrom/macsrc/PluginConfigController.m | 3 +-- macosx/plugins/DFInput/macsrc/PadController.m | 3 +-- macosx/plugins/DFNet/macsrc/PluginConfigController.m | 3 +-- macosx/plugins/DFSound/macsrc/PluginController.m | 3 +-- macosx/plugins/DFXVideo/macsrc/PluginConfigController.m | 3 +-- 6 files changed, 6 insertions(+), 12 deletions(-) (limited to 'macosx/plugins') diff --git a/macosx/plugins/Bladesio1/macsrc/PluginConfigController.m b/macosx/plugins/Bladesio1/macsrc/PluginConfigController.m index 1090df6f..e99bf684 100755 --- a/macosx/plugins/Bladesio1/macsrc/PluginConfigController.m +++ b/macosx/plugins/Bladesio1/macsrc/PluginConfigController.m @@ -37,7 +37,6 @@ static PluginConfigController *windowController = nil; void AboutDlgProc() { // Get parent application instance - NSApplication *app = [NSApplication sharedApplication]; NSBundle *bundle = [NSBundle bundleWithIdentifier:APP_ID]; // Get Credits.rtf @@ -67,7 +66,7 @@ void AboutDlgProc() credits, @"Credits", nil]; dispatch_async(dispatch_get_main_queue(), ^{ - [app orderFrontStandardAboutPanelWithOptions:infoPaneDict]; + [NSApp orderFrontStandardAboutPanelWithOptions:infoPaneDict]; }); RELEASEOBJ(infoPaneDict); } diff --git a/macosx/plugins/DFCdrom/macsrc/PluginConfigController.m b/macosx/plugins/DFCdrom/macsrc/PluginConfigController.m index c519a666..e36057c7 100755 --- a/macosx/plugins/DFCdrom/macsrc/PluginConfigController.m +++ b/macosx/plugins/DFCdrom/macsrc/PluginConfigController.m @@ -40,7 +40,6 @@ static PluginConfigController *windowController = nil; void AboutDlgProc() { // Get parent application instance - NSApplication *app = [NSApplication sharedApplication]; NSBundle *bundle = [NSBundle bundleWithIdentifier:APP_ID]; // Get Credits.rtf @@ -70,7 +69,7 @@ void AboutDlgProc() credits, @"Credits", nil]; dispatch_async(dispatch_get_main_queue(), ^{ - [app orderFrontStandardAboutPanelWithOptions:infoPaneDict]; + [NSApp orderFrontStandardAboutPanelWithOptions:infoPaneDict]; }); RELEASEOBJ(infoPaneDict); } diff --git a/macosx/plugins/DFInput/macsrc/PadController.m b/macosx/plugins/DFInput/macsrc/PadController.m index 1a4997c6..3c822417 100755 --- a/macosx/plugins/DFInput/macsrc/PadController.m +++ b/macosx/plugins/DFInput/macsrc/PadController.m @@ -41,7 +41,6 @@ static PadController *padController = nil; void DoAbout() { // Get parent application instance - NSApplication *app = [NSApplication sharedApplication]; NSBundle *bundle = [NSBundle bundleWithIdentifier:APP_ID]; // Get Credits.rtf @@ -70,7 +69,7 @@ void DoAbout() credits, @"Credits", nil]; dispatch_async(dispatch_get_main_queue(), ^{ - [app orderFrontStandardAboutPanelWithOptions:infoPaneDict]; + [NSApp orderFrontStandardAboutPanelWithOptions:infoPaneDict]; }); RELEASEOBJ(infoPaneDict); } diff --git a/macosx/plugins/DFNet/macsrc/PluginConfigController.m b/macosx/plugins/DFNet/macsrc/PluginConfigController.m index bb3b1061..155adf7e 100755 --- a/macosx/plugins/DFNet/macsrc/PluginConfigController.m +++ b/macosx/plugins/DFNet/macsrc/PluginConfigController.m @@ -44,7 +44,6 @@ static inline void RunOnMainThreadSync(dispatch_block_t block) void AboutDlgProc() { // Get parent application instance - NSApplication *app = [NSApplication sharedApplication]; NSBundle *bundle = [NSBundle bundleWithIdentifier:APP_ID]; // Get Credits.rtf @@ -72,7 +71,7 @@ void AboutDlgProc() credits, @"Credits", nil]; dispatch_async(dispatch_get_main_queue(), ^{ - [app orderFrontStandardAboutPanelWithOptions:infoPaneDict]; + [NSApp orderFrontStandardAboutPanelWithOptions:infoPaneDict]; }); RELEASEOBJ(infoPaneDict); } diff --git a/macosx/plugins/DFSound/macsrc/PluginController.m b/macosx/plugins/DFSound/macsrc/PluginController.m index c323967d..36ad0db3 100755 --- a/macosx/plugins/DFSound/macsrc/PluginController.m +++ b/macosx/plugins/DFSound/macsrc/PluginController.m @@ -56,7 +56,6 @@ static inline void RunOnMainThreadSync(dispatch_block_t block) void DoAbout() { // Get parent application instance - NSApplication *app = [NSApplication sharedApplication]; NSBundle *bundle = [NSBundle bundleWithIdentifier:APP_ID]; // Get Credits.rtf @@ -83,7 +82,7 @@ void DoAbout() credits, @"Credits", nil]; dispatch_async(dispatch_get_main_queue(), ^{ - [app orderFrontStandardAboutPanelWithOptions:infoPaneDict]; + [NSApp orderFrontStandardAboutPanelWithOptions:infoPaneDict]; }); RELEASEOBJ(infoPaneDict); } diff --git a/macosx/plugins/DFXVideo/macsrc/PluginConfigController.m b/macosx/plugins/DFXVideo/macsrc/PluginConfigController.m index d20849fb..5d7a51e9 100755 --- a/macosx/plugins/DFXVideo/macsrc/PluginConfigController.m +++ b/macosx/plugins/DFXVideo/macsrc/PluginConfigController.m @@ -46,7 +46,6 @@ static PluginConfigController *windowController = nil; void AboutDlgProc() { // Get parent application instance - NSApplication *app = [NSApplication sharedApplication]; NSBundle *bundle = [NSBundle bundleWithIdentifier:APP_ID]; // Get Credits.rtf @@ -75,7 +74,7 @@ void AboutDlgProc() credits, @"Credits", nil]; dispatch_async(dispatch_get_main_queue(), ^{ - [app orderFrontStandardAboutPanelWithOptions:infoPaneDict]; + [NSApp orderFrontStandardAboutPanelWithOptions:infoPaneDict]; }); RELEASEOBJ(infoPaneDict); } -- cgit v1.2.3