Fix Cocoa complaining when getting the plug-in info under OS X.
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@85830 e17a0e51-4ae3-4d35-97c3-1a29b211df97
This commit is contained in:
parent
872cbfb560
commit
d422e158d8
|
@ -57,14 +57,18 @@ void AboutDlgProc()
|
|||
NSSize size = NSMakeSize(64, 64);
|
||||
[icon setSize:size];
|
||||
|
||||
[app orderFrontStandardAboutPanelWithOptions:[NSDictionary dictionaryWithObjectsAndKeys:
|
||||
[bundle objectForInfoDictionaryKey:@"CFBundleName"], @"ApplicationName",
|
||||
icon, @"ApplicationIcon",
|
||||
[bundle objectForInfoDictionaryKey:@"CFBundleShortVersionString"], @"ApplicationVersion",
|
||||
[bundle objectForInfoDictionaryKey:@"CFBundleVersion"], @"Version",
|
||||
[bundle objectForInfoDictionaryKey:@"NSHumanReadableCopyright"], @"Copyright",
|
||||
credits, @"Credits",
|
||||
nil]];
|
||||
NSDictionary *infoPaneDict =
|
||||
[NSDictionary dictionaryWithObjectsAndKeys:
|
||||
[bundle objectForInfoDictionaryKey:@"CFBundleName"], @"ApplicationName",
|
||||
icon, @"ApplicationIcon",
|
||||
[bundle objectForInfoDictionaryKey:@"CFBundleShortVersionString"], @"ApplicationVersion",
|
||||
[bundle objectForInfoDictionaryKey:@"CFBundleVersion"], @"Version",
|
||||
[bundle objectForInfoDictionaryKey:@"NSHumanReadableCopyright"], @"Copyright",
|
||||
credits, @"Credits",
|
||||
nil];
|
||||
dispatch_async(dispatch_get_main_queue(), ^{
|
||||
[app orderFrontStandardAboutPanelWithOptions:infoPaneDict];
|
||||
});
|
||||
}
|
||||
|
||||
void ConfDlgProc()
|
||||
|
|
|
@ -51,14 +51,18 @@ void AboutDlgProc()
|
|||
NSSize size = NSMakeSize(64, 64);
|
||||
[icon setSize:size];
|
||||
|
||||
[app orderFrontStandardAboutPanelWithOptions:[NSDictionary dictionaryWithObjectsAndKeys:
|
||||
[bundle objectForInfoDictionaryKey:@"CFBundleName"], @"ApplicationName",
|
||||
icon, @"ApplicationIcon",
|
||||
[bundle objectForInfoDictionaryKey:@"CFBundleShortVersionString"], @"ApplicationVersion",
|
||||
[bundle objectForInfoDictionaryKey:@"CFBundleVersion"], @"Version",
|
||||
[bundle objectForInfoDictionaryKey:@"NSHumanReadableCopyright"], @"Copyright",
|
||||
credits, @"Credits",
|
||||
nil]];
|
||||
NSDictionary *infoPaneDict =
|
||||
[NSDictionary dictionaryWithObjectsAndKeys:
|
||||
[bundle objectForInfoDictionaryKey:@"CFBundleName"], @"ApplicationName",
|
||||
icon, @"ApplicationIcon",
|
||||
[bundle objectForInfoDictionaryKey:@"CFBundleShortVersionString"], @"ApplicationVersion",
|
||||
[bundle objectForInfoDictionaryKey:@"CFBundleVersion"], @"Version",
|
||||
[bundle objectForInfoDictionaryKey:@"NSHumanReadableCopyright"], @"Copyright",
|
||||
credits, @"Credits",
|
||||
nil];
|
||||
dispatch_async(dispatch_get_main_queue(), ^{
|
||||
[app orderFrontStandardAboutPanelWithOptions:infoPaneDict];
|
||||
});
|
||||
}
|
||||
|
||||
void ConfDlgProc()
|
||||
|
|
|
@ -50,13 +50,18 @@ void DoAbout() {
|
|||
NSSize size = NSMakeSize(64, 64);
|
||||
[icon setSize:size];
|
||||
|
||||
[app orderFrontStandardAboutPanelWithOptions:[NSDictionary dictionaryWithObjectsAndKeys:
|
||||
[bundle objectForInfoDictionaryKey:@"CFBundleName"], @"ApplicationName",
|
||||
icon, @"ApplicationIcon",
|
||||
[bundle objectForInfoDictionaryKey:@"CFBundleShortVersionString"], @"ApplicationVersion",
|
||||
[bundle objectForInfoDictionaryKey:@"CFBundleVersion"], @"Version",
|
||||
[bundle objectForInfoDictionaryKey:@"NSHumanReadableCopyright"], @"Copyright",
|
||||
credits, @"Credits", nil]];
|
||||
NSDictionary *infoPaneDict =
|
||||
[NSDictionary dictionaryWithObjectsAndKeys:
|
||||
[bundle objectForInfoDictionaryKey:@"CFBundleName"], @"ApplicationName",
|
||||
icon, @"ApplicationIcon",
|
||||
[bundle objectForInfoDictionaryKey:@"CFBundleShortVersionString"], @"ApplicationVersion",
|
||||
[bundle objectForInfoDictionaryKey:@"CFBundleVersion"], @"Version",
|
||||
[bundle objectForInfoDictionaryKey:@"NSHumanReadableCopyright"], @"Copyright",
|
||||
credits, @"Credits",
|
||||
nil];
|
||||
dispatch_async(dispatch_get_main_queue(), ^{
|
||||
[app orderFrontStandardAboutPanelWithOptions:infoPaneDict];
|
||||
});
|
||||
}
|
||||
|
||||
long DoConfiguration() {
|
||||
|
|
|
@ -53,14 +53,18 @@ void AboutDlgProc()
|
|||
NSImage *icon = [[NSWorkspace sharedWorkspace] iconForFile:[bundle bundlePath]];
|
||||
[icon setSize:NSMakeSize(64, 64)];
|
||||
|
||||
[app orderFrontStandardAboutPanelWithOptions:[NSDictionary dictionaryWithObjectsAndKeys:
|
||||
[bundle objectForInfoDictionaryKey:@"CFBundleName"], @"ApplicationName",
|
||||
icon, @"ApplicationIcon",
|
||||
[bundle objectForInfoDictionaryKey:@"CFBundleShortVersionString"], @"ApplicationVersion",
|
||||
[bundle objectForInfoDictionaryKey:@"CFBundleVersion"], @"Version",
|
||||
[bundle objectForInfoDictionaryKey:@"NSHumanReadableCopyright"], @"Copyright",
|
||||
credits, @"Credits",
|
||||
nil]];
|
||||
NSDictionary *infoPaneDict =
|
||||
[NSDictionary dictionaryWithObjectsAndKeys:
|
||||
[bundle objectForInfoDictionaryKey:@"CFBundleName"], @"ApplicationName",
|
||||
icon, @"ApplicationIcon",
|
||||
[bundle objectForInfoDictionaryKey:@"CFBundleShortVersionString"], @"ApplicationVersion",
|
||||
[bundle objectForInfoDictionaryKey:@"CFBundleVersion"], @"Version",
|
||||
[bundle objectForInfoDictionaryKey:@"NSHumanReadableCopyright"], @"Copyright",
|
||||
credits, @"Credits",
|
||||
nil];
|
||||
dispatch_async(dispatch_get_main_queue(), ^{
|
||||
[app orderFrontStandardAboutPanelWithOptions:infoPaneDict];
|
||||
});
|
||||
}
|
||||
|
||||
void ConfDlgProc()
|
||||
|
|
|
@ -65,14 +65,18 @@ void DoAbout()
|
|||
NSSize size = NSMakeSize(64, 64);
|
||||
[icon setSize:size];
|
||||
|
||||
[app orderFrontStandardAboutPanelWithOptions:[NSDictionary dictionaryWithObjectsAndKeys:
|
||||
[bundle objectForInfoDictionaryKey:@"CFBundleName"], @"ApplicationName",
|
||||
icon, @"ApplicationIcon",
|
||||
[bundle objectForInfoDictionaryKey:@"CFBundleShortVersionString"], @"ApplicationVersion",
|
||||
[bundle objectForInfoDictionaryKey:@"CFBundleVersion"], @"Version",
|
||||
[bundle objectForInfoDictionaryKey:@"NSHumanReadableCopyright"], @"Copyright",
|
||||
credits, @"Credits",
|
||||
nil]];
|
||||
NSDictionary *infoPaneDict =
|
||||
[NSDictionary dictionaryWithObjectsAndKeys:
|
||||
[bundle objectForInfoDictionaryKey:@"CFBundleName"], @"ApplicationName",
|
||||
icon, @"ApplicationIcon",
|
||||
[bundle objectForInfoDictionaryKey:@"CFBundleShortVersionString"], @"ApplicationVersion",
|
||||
[bundle objectForInfoDictionaryKey:@"CFBundleVersion"], @"Version",
|
||||
[bundle objectForInfoDictionaryKey:@"NSHumanReadableCopyright"], @"Copyright",
|
||||
credits, @"Credits",
|
||||
nil];
|
||||
dispatch_async(dispatch_get_main_queue(), ^{
|
||||
[app orderFrontStandardAboutPanelWithOptions:infoPaneDict];
|
||||
});
|
||||
}
|
||||
|
||||
long DoConfiguration()
|
||||
|
|
|
@ -65,14 +65,18 @@ void AboutDlgProc()
|
|||
NSSize size = NSMakeSize(64, 64);
|
||||
[icon setSize:size];
|
||||
|
||||
[app orderFrontStandardAboutPanelWithOptions:[NSDictionary dictionaryWithObjectsAndKeys:
|
||||
[bundle objectForInfoDictionaryKey:@"CFBundleName"], @"ApplicationName",
|
||||
icon, @"ApplicationIcon",
|
||||
[bundle objectForInfoDictionaryKey:@"CFBundleShortVersionString"], @"ApplicationVersion",
|
||||
[bundle objectForInfoDictionaryKey:@"CFBundleVersion"], @"Version",
|
||||
[bundle objectForInfoDictionaryKey:@"NSHumanReadableCopyright"], @"Copyright",
|
||||
credits, @"Credits",
|
||||
nil]];
|
||||
NSDictionary *infoPaneDict =
|
||||
[NSDictionary dictionaryWithObjectsAndKeys:
|
||||
[bundle objectForInfoDictionaryKey:@"CFBundleName"], @"ApplicationName",
|
||||
icon, @"ApplicationIcon",
|
||||
[bundle objectForInfoDictionaryKey:@"CFBundleShortVersionString"], @"ApplicationVersion",
|
||||
[bundle objectForInfoDictionaryKey:@"CFBundleVersion"], @"Version",
|
||||
[bundle objectForInfoDictionaryKey:@"NSHumanReadableCopyright"], @"Copyright",
|
||||
credits, @"Credits",
|
||||
nil];
|
||||
dispatch_async(dispatch_get_main_queue(), ^{
|
||||
[app orderFrontStandardAboutPanelWithOptions:infoPaneDict];
|
||||
});
|
||||
}
|
||||
|
||||
void SoftDlgProc()
|
||||
|
|
|
@ -70,14 +70,18 @@ void AboutDlgProc()
|
|||
NSSize size = NSMakeSize(64, 64);
|
||||
[icon setSize:size];
|
||||
|
||||
[app orderFrontStandardAboutPanelWithOptions:[NSDictionary dictionaryWithObjectsAndKeys:
|
||||
[bundle objectForInfoDictionaryKey:@"CFBundleName"], @"ApplicationName",
|
||||
icon, @"ApplicationIcon",
|
||||
[bundle objectForInfoDictionaryKey:@"CFBundleShortVersionString"], @"ApplicationVersion",
|
||||
[bundle objectForInfoDictionaryKey:@"CFBundleVersion"], @"Version",
|
||||
[bundle objectForInfoDictionaryKey:@"NSHumanReadableCopyright"], @"Copyright",
|
||||
credits, @"Credits",
|
||||
nil]];
|
||||
NSDictionary *infoPaneDict =
|
||||
[NSDictionary dictionaryWithObjectsAndKeys:
|
||||
[bundle objectForInfoDictionaryKey:@"CFBundleName"], @"ApplicationName",
|
||||
icon, @"ApplicationIcon",
|
||||
[bundle objectForInfoDictionaryKey:@"CFBundleShortVersionString"], @"ApplicationVersion",
|
||||
[bundle objectForInfoDictionaryKey:@"CFBundleVersion"], @"Version",
|
||||
[bundle objectForInfoDictionaryKey:@"NSHumanReadableCopyright"], @"Copyright",
|
||||
credits, @"Credits",
|
||||
nil];
|
||||
dispatch_async(dispatch_get_main_queue(), ^{
|
||||
[app orderFrontStandardAboutPanelWithOptions:infoPaneDict];
|
||||
});
|
||||
}
|
||||
|
||||
void DlgProc()
|
||||
|
|
Loading…
Reference in New Issue
Block a user