X-Git-Url: http://git.ithinksw.org/MenuTunes.git/blobdiff_plain/8ae00032eb40faf1db88f878885d716a1820406c..c99066bb8eb3a6f60be746f1ae150390dea4bd51:/MTBlingController.m?ds=inline diff --git a/MTBlingController.m b/MTBlingController.m index fb1a66b..a09be61 100755 --- a/MTBlingController.m +++ b/MTBlingController.m @@ -8,6 +8,7 @@ #import "MTBlingController.h" #import "MTeSerialNumber.h" +#import "MainController.h" #define APP_SUPPORT_PATH_STRING [@"~/Library/Application Support/MenuTunes/" stringByExpandingTildeInPath] #define LICENSE_PATH_STRING [APP_SUPPORT_PATH_STRING stringByAppendingString:@"/.license"] @@ -31,6 +32,9 @@ - (void)_IT {} - (void)_YOU {} - (void)_TIGHTWAD {} +- (void)_HAHAHA {} +- (void)_LOLOL {} +- (void)_FIVERSKATES {} - (id)init { @@ -46,9 +50,10 @@ if ( ! window ) { window = [MTShizzleWindow sharedWindowForSender:self]; } - + [NSApp activateIgnoringOtherApps:YES]; [window center]; - [window makeKeyAndOrderFront:nil]; + [window orderFrontRegardless]; + [window makeKeyWindow]; // [window setLevel:NSStatusWindowLevel]; } @@ -115,7 +120,7 @@ nil, nil, nil, NSLocalizedString(@"failed_msg", @"Failed Message")); } - + [[MainController sharedController] blingTime]; } - (int)checkKeyFile @@ -137,11 +142,12 @@ { if ( ! (checkDone == 2475) ) { if ( ! ([self checkKeyFile] == 7465) ) { - return 0 + checkDone = 0; } else { - return 2475; + checkDone = 2475; } } + return checkDone; } - (void)finishValidSheet:(NSWindow *)sheet returnCode:(int)returnCode contextInfo:(void *)contextInfo