X-Git-Url: http://git.ithinksw.org/MenuTunes.git/blobdiff_plain/ebafabc2f10815bd103c177299c50c1fd6b2d3a7..3af6b8277d3305427112b099523abeab3c231816:/MTBlingController.m diff --git a/MTBlingController.m b/MTBlingController.m index 638a2f1..eeb7174 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]; } @@ -71,6 +76,9 @@ - (void)registerLater:(id)sender { [window orderOut:self]; + if ([[NSDate date] timeIntervalSinceDate:[[MainController sharedController] getBlingTime]] >= 604800) { + [NSApp terminate:nil]; + } } - (void)verifyKey:(id)sender @@ -115,7 +123,7 @@ nil, nil, nil, NSLocalizedString(@"failed_msg", @"Failed Message")); } - + [[MainController sharedController] blingTime]; } - (int)checkKeyFile @@ -135,6 +143,13 @@ - (int)checkDone { + if ( ! (checkDone == 2475) ) { + if ( ! ([self checkKeyFile] == 7465) ) { + checkDone = 0; + } else { + checkDone = 2475; + } + } return checkDone; }