#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];
regLater = [[NSButton alloc] initWithFrame:NSMakeRect(138, 16, 116, 25)];
[regLater setTitle:@"Register Later"];
+ [regLater setFont:[NSFont systemFontOfSize:[NSFont systemFontSize]]];
[regLater setTarget:_sender];
[regLater setAction:@selector(registerLater:)];
[regLater setBezelStyle:NSRoundedBezelStyle];
verifyKey = [[NSButton alloc] initWithFrame:NSMakeRect(255, 16, 116, 25)];
[verifyKey setTitle:@"Verify Key"];
+ [verifyKey setFont:[NSFont systemFontOfSize:[NSFont systemFontSize]]];
[verifyKey setTarget:_sender];
[verifyKey setAction:@selector(verifyKey:)];
[verifyKey setBezelStyle:NSRoundedBezelStyle];