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
This commit is contained in:
SND\MaddTheSane_cp 2013-08-26 18:17:24 +00:00
parent 895f26cffe
commit 15a535c6bf
7 changed files with 6 additions and 13 deletions

View File

@ -3231,7 +3231,6 @@
../macosx,
);
MACOSX_DEPLOYMENT_TARGET = 10.7;
PROVISIONING_PROFILE = "";
};
name = Release;
};

View File

@ -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);
}

View File

@ -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);
}

View File

@ -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);
}

View File

@ -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);
}

View File

@ -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);
}

View File

@ -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);
}