#import "MTShizzleWindow.h"
+#import "MainController.h"
@interface MTShizzleWindow (Private)
- (void)setBling:(id)bling;
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];