Finally fixed all the memory leaks, I hope. Fixed iTunesRemote to not
[MenuTunes.git] / MTShizzleWindow.m
index ede4cd2..674d338 100755 (executable)
@@ -1,4 +1,5 @@
 #import "MTShizzleWindow.h"
+#import "MainController.h"
 
 @interface MTShizzleWindow (Private)
 - (void)setBling:(id)bling;
@@ -37,6 +38,15 @@ static MTShizzleWindow *_privateSharedWindow = nil;
     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 +109,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)];