X-Git-Url: http://git.ithinksw.org/MenuTunes.git/blobdiff_plain/9c8f6e1b9b0b947d898a3d9bae3acb3999879791..e5c183a31067923163f346d2fe64f367b0e0c542:/MTShizzleWindow.m diff --git a/MTShizzleWindow.m b/MTShizzleWindow.m index ede4cd2..11ca0b1 100755 --- a/MTShizzleWindow.m +++ b/MTShizzleWindow.m @@ -1,4 +1,5 @@ #import "MTShizzleWindow.h" +#import "MainController.h" @interface MTShizzleWindow (Private) - (void)setBling:(id)bling; @@ -32,11 +33,21 @@ static MTShizzleWindow *_privateSharedWindow = nil; styleMask:styleMask backing:backingType defer:flag]) ) { + [self setLevel:NSStatusWindowLevel]; [self buildWindow]; } return self; } +- (void)makeKeyAndOrderFront:(id)sender { + if ( ( [[NSDate date] timeIntervalSinceDate:[[MainController sharedController] getBlingTime]] >= 604800 ) && ([[regLater title] isEqualToString:@"Register Later"]) ) { + [regLater setTitle:@"Quit"]; + [regLater setTarget:[NSApplication sharedApplication]]; + [regLater setAction:@selector(terminate:)]; + } + [super makeKeyAndOrderFront:sender]; +} + - (void)dealloc { [regMessage release]; @@ -99,7 +110,7 @@ static MTShizzleWindow *_privateSharedWindow = nil; [regBenefits setEditable:NO]; [regBenefits setSelectable:NO]; [regBenefits setDrawsBackground:NO]; - [regBenefits setFont:[NSFont fontWithName:@"Lucida Grande" size:11]]; + [regBenefits setFont:[NSFont fontWithName:@"LucidaGrande" size:11]]; [[box contentView] addSubview:regBenefits]; enterInfo = [[NSTextField alloc] initWithFrame:NSMakeRect(20, 148, 345, 17)];