// Make the buttons, set the titles, and size them to fit their titles
okButton = [[ITButton alloc] initWithFrame:NSMakeRect(0, 0, 300, 24)];
cancelButton = [[ITButton alloc] initWithFrame:NSMakeRect(0, 0, 300, 24)];
+ [okButton setTarget:target];
+ [cancelButton setTarget:target];
+ [okButton setAction:okAction];
+ [cancelButton setAction:alternateAction];
[okButton setBezelStyle:ITGrayRoundedBezelStyle];
[cancelButton setBezelStyle:ITGrayRoundedBezelStyle];
[okButton setAlignment:NSRightTextAlignment];
24.0)];
[[self contentView] addSubview:okButton];
[[self contentView] addSubview:cancelButton];
- NSLog(@"%@", [[self contentView] description]);
[self setIgnoresMouseEvents:NO];
- (void)showShuffleWindow:(BOOL)shuffle;
- (void)showRepeatWindowWithMode:(StatusWindowRepeatMode)mode;
- (void)showSetupQueryWindow;
+- (void)showRegistrationQueryWindow;
- (void)showSongInfoWindowWithSource:(ITMTRemotePlayerSource)source
title: (NSString *)title
#import "StatusWindowController.h"
#import "StatusWindow.h"
#import "PreferencesController.h"
+#import "MainController.h"
#import <ITKit/ITWindowEffect.h>
#import <ITKit/ITCutWindowEffect.h>
}
+- (void)showRegistrationQueryWindow
+{
+ NSString *message = @"xxjghsdkfj\nHAHA";
+
+ [_window setImage:[NSImage imageNamed:@"Register"]];
+ [_window buildDialogWindowWithMessage:message
+ defaultButton:@"Register Now"
+ alternateButton:@"Quit MenuPrefs"
+ target:[MainController sharedController]
+ defaultAction:@selector(registerNowOK)
+ alternateAction:@selector(registerNowCancel)];
+
+ [_window appear:self];
+ [_window setLocked:YES];
+}
+
+
@end
\ No newline at end of file