From d881160c03d85f93157725fb1600696f577ee5af Mon Sep 17 00:00:00 2001 From: rogerman Date: Mon, 20 Feb 2012 18:40:32 +0000 Subject: [PATCH] Cocoa Port: - Change the app identifier from "com.DeSmuME.DeSmuME" to "org.desmume.DeSmuME". - Change the app category from Utilities to Entertainment. --- desmume/src/cocoa/Info (Debug).plist | 6 +++--- desmume/src/cocoa/Info (Legacy Debug).plist | 6 +++--- desmume/src/cocoa/Info (Legacy).plist | 6 +++--- desmume/src/cocoa/Info.plist | 6 +++--- desmume/src/cocoa/cocoa_cheat.mm | 4 ++-- desmume/src/cocoa/cocoa_hid.mm | 2 +- desmume/src/cocoa/cocoa_input.mm | 2 +- desmume/src/cocoa/cocoa_output.mm | 2 +- desmume/src/cocoa/cocoa_rom.mm | 4 ++-- desmume/src/cocoa/userinterface/emuWindowDelegate.mm | 4 ++-- desmume/src/cocoa/userinterface/inputPrefsView.mm | 2 +- 11 files changed, 22 insertions(+), 22 deletions(-) diff --git a/desmume/src/cocoa/Info (Debug).plist b/desmume/src/cocoa/Info (Debug).plist index 180fb9f25..9b3426580 100644 --- a/desmume/src/cocoa/Info (Debug).plist +++ b/desmume/src/cocoa/Info (Debug).plist @@ -228,11 +228,11 @@ CFBundleExecutable - DeSmuME (Debug) + ${PRODUCT_NAME} CFBundleIconFile AppIcon_DeSmuME CFBundleIdentifier - com.DeSmuME.DeSmuME + org.desmume.DeSmuME CFBundleInfoDictionaryVersion 6.0 CFBundleName @@ -246,7 +246,7 @@ CFBundleVersion 0.9.8 LSApplicationCategoryType - public.app-category.utilities + public.app-category.entertainment LSMinimumSystemVersion ${MACOSX_DEPLOYMENT_TARGET} NSHumanReadableCopyright diff --git a/desmume/src/cocoa/Info (Legacy Debug).plist b/desmume/src/cocoa/Info (Legacy Debug).plist index ebf4f822e..5ed22ac33 100644 --- a/desmume/src/cocoa/Info (Legacy Debug).plist +++ b/desmume/src/cocoa/Info (Legacy Debug).plist @@ -228,11 +228,11 @@ CFBundleExecutable - DeSmuME (Debug) + ${PRODUCT_NAME} CFBundleIconFile AppIcon_DeSmuME CFBundleIdentifier - com.DeSmuME.DeSmuME + org.desmume.DeSmuME CFBundleInfoDictionaryVersion 6.0 CFBundleName @@ -246,7 +246,7 @@ CFBundleVersion 0.9.8 LSApplicationCategoryType - public.app-category.utilities + public.app-category.entertainment LSMinimumSystemVersion ${MACOSX_DEPLOYMENT_TARGET} NSHumanReadableCopyright diff --git a/desmume/src/cocoa/Info (Legacy).plist b/desmume/src/cocoa/Info (Legacy).plist index 9c9b4157d..4cf346b61 100644 --- a/desmume/src/cocoa/Info (Legacy).plist +++ b/desmume/src/cocoa/Info (Legacy).plist @@ -228,11 +228,11 @@ CFBundleExecutable - DeSmuME + ${PRODUCT_NAME} CFBundleIconFile AppIcon_DeSmuME CFBundleIdentifier - com.DeSmuME.DeSmuME + org.desmume.DeSmuME CFBundleInfoDictionaryVersion 6.0 CFBundleName @@ -246,7 +246,7 @@ CFBundleVersion 0.9.8 LSApplicationCategoryType - public.app-category.utilities + public.app-category.entertainment LSMinimumSystemVersion ${MACOSX_DEPLOYMENT_TARGET} NSHumanReadableCopyright diff --git a/desmume/src/cocoa/Info.plist b/desmume/src/cocoa/Info.plist index 75b43bd51..d96f27a15 100644 --- a/desmume/src/cocoa/Info.plist +++ b/desmume/src/cocoa/Info.plist @@ -228,11 +228,11 @@ CFBundleExecutable - DeSmuME + ${PRODUCT_NAME} CFBundleIconFile AppIcon_DeSmuME CFBundleIdentifier - com.DeSmuME.DeSmuME + org.desmume.DeSmuME CFBundleInfoDictionaryVersion 6.0 CFBundleName @@ -246,7 +246,7 @@ CFBundleVersion 0.9.8 LSApplicationCategoryType - public.app-category.utilities + public.app-category.entertainment LSMinimumSystemVersion ${MACOSX_DEPLOYMENT_TARGET} NSHumanReadableCopyright diff --git a/desmume/src/cocoa/cocoa_cheat.mm b/desmume/src/cocoa/cocoa_cheat.mm index be958ab6e..0931e7327 100644 --- a/desmume/src/cocoa/cocoa_cheat.mm +++ b/desmume/src/cocoa/cocoa_cheat.mm @@ -1132,7 +1132,7 @@ static NSImage *iconCodeBreaker = nil; searchCount++; } - [[NSNotificationCenter defaultCenter] postNotificationOnMainThreadName:@"com.DeSmuME.DeSmuME.searchDidFinish" object:self userInfo:nil]; + [[NSNotificationCenter defaultCenter] postNotificationOnMainThreadName:@"org.desmume.DeSmuME.searchDidFinish" object:self userInfo:nil]; return itemCount; } @@ -1174,7 +1174,7 @@ static NSImage *iconCodeBreaker = nil; searchCount++; } - [[NSNotificationCenter defaultCenter] postNotificationOnMainThreadName:@"com.DeSmuME.DeSmuME.searchDidFinish" object:self userInfo:nil]; + [[NSNotificationCenter defaultCenter] postNotificationOnMainThreadName:@"org.desmume.DeSmuME.searchDidFinish" object:self userInfo:nil]; return itemCount; } diff --git a/desmume/src/cocoa/cocoa_hid.mm b/desmume/src/cocoa/cocoa_hid.mm index 56219716f..6bd16a264 100644 --- a/desmume/src/cocoa/cocoa_hid.mm +++ b/desmume/src/cocoa/cocoa_hid.mm @@ -878,7 +878,7 @@ void HandleQueueValueAvailableCallback(void *inContext, IOReturn inResult, void // sleep and screensaver whenever we detect an input. UpdateSystemActivity(UsrActivity); - [[NSNotificationCenter defaultCenter] postNotificationOnMainThreadName:@"com.DeSmuME.DeSmuME.hidInputDetected" object:inputAttributesList userInfo:nil]; + [[NSNotificationCenter defaultCenter] postNotificationOnMainThreadName:@"org.desmume.DeSmuME.hidInputDetected" object:inputAttributesList userInfo:nil]; } CFRelease(hidValueRef); diff --git a/desmume/src/cocoa/cocoa_input.mm b/desmume/src/cocoa/cocoa_input.mm index a3aab2d84..291abe9c9 100644 --- a/desmume/src/cocoa/cocoa_input.mm +++ b/desmume/src/cocoa/cocoa_input.mm @@ -204,7 +204,7 @@ [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(handleHIDInput:) - name:@"com.DeSmuME.DeSmuME.hidInputDetected" + name:@"org.desmume.DeSmuME.hidInputDetected" object:nil]; return self; diff --git a/desmume/src/cocoa/cocoa_output.mm b/desmume/src/cocoa/cocoa_output.mm index c1f4e31cc..8ed4fce27 100644 --- a/desmume/src/cocoa/cocoa_output.mm +++ b/desmume/src/cocoa/cocoa_output.mm @@ -1398,7 +1398,7 @@ static BOOL isSPUStarted = NO; [self image], @"screenshotImage", nil]; - [[NSNotificationCenter defaultCenter] postNotificationOnMainThreadName:@"com.DeSmuME.DeSmuME.requestScreenshotDidFinish" object:self userInfo:userInfo]; + [[NSNotificationCenter defaultCenter] postNotificationOnMainThreadName:@"org.desmume.DeSmuME.requestScreenshotDidFinish" object:self userInfo:userInfo]; [userInfo release]; [fileURLString release]; diff --git a/desmume/src/cocoa/cocoa_rom.mm b/desmume/src/cocoa/cocoa_rom.mm index d4bbffd41..08ef707a3 100644 --- a/desmume/src/cocoa/cocoa_rom.mm +++ b/desmume/src/cocoa/cocoa_rom.mm @@ -211,7 +211,7 @@ static NSMutableDictionary *saveTypeValues = nil; if (!result) { NSDictionary *userInfo = [[NSDictionary alloc] initWithObjectsAndKeys:[NSNumber numberWithBool:NO], @"DidLoad", nil]; - [[NSNotificationCenter defaultCenter] postNotificationOnMainThreadName:@"com.DeSmuME.DeSmuME.loadRomDidFinish" object:self userInfo:userInfo]; + [[NSNotificationCenter defaultCenter] postNotificationOnMainThreadName:@"org.desmume.DeSmuME.loadRomDidFinish" object:self userInfo:userInfo]; [userInfo release]; return result; } @@ -232,7 +232,7 @@ static NSMutableDictionary *saveTypeValues = nil; } NSDictionary *userInfo = [[NSDictionary alloc] initWithObjectsAndKeys:[NSNumber numberWithBool:YES], @"DidLoad", self.fileURL, @"URL", nil]; - [[NSNotificationCenter defaultCenter] postNotificationOnMainThreadName:@"com.DeSmuME.DeSmuME.loadRomDidFinish" object:self userInfo:userInfo]; + [[NSNotificationCenter defaultCenter] postNotificationOnMainThreadName:@"org.desmume.DeSmuME.loadRomDidFinish" object:self userInfo:userInfo]; [userInfo release]; return result; diff --git a/desmume/src/cocoa/userinterface/emuWindowDelegate.mm b/desmume/src/cocoa/userinterface/emuWindowDelegate.mm index 13995a92c..93424806b 100644 --- a/desmume/src/cocoa/userinterface/emuWindowDelegate.mm +++ b/desmume/src/cocoa/userinterface/emuWindowDelegate.mm @@ -115,12 +115,12 @@ [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(loadRomDidFinish:) - name:@"com.DeSmuME.DeSmuME.loadRomDidFinish" + name:@"org.desmume.DeSmuME.loadRomDidFinish" object:nil]; [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(saveScreenshotAsFinish:) - name:@"com.DeSmuME.DeSmuME.requestScreenshotDidFinish" + name:@"org.desmume.DeSmuME.requestScreenshotDidFinish" object:nil]; return self; diff --git a/desmume/src/cocoa/userinterface/inputPrefsView.mm b/desmume/src/cocoa/userinterface/inputPrefsView.mm index 60799cd41..8e1d766d0 100644 --- a/desmume/src/cocoa/userinterface/inputPrefsView.mm +++ b/desmume/src/cocoa/userinterface/inputPrefsView.mm @@ -46,7 +46,7 @@ [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(handleHIDInput:) - name:@"com.DeSmuME.DeSmuME.hidInputDetected" + name:@"org.desmume.DeSmuME.hidInputDetected" object:nil]; return self;