// // PreferencesWindowController.m // Proteus // // Created by Julian Cain on 4/2/10. // Copyright 2010 __MyCompanyName__. All rights reserved. // #import "AccountSetupWindowController.h" #import "PreferencesWindowController.h" @implementation PreferencesWindowController @synthesize accountsView = _accountsView; @synthesize accountSetupWindowController = _accountSetupWindowController; - (id)init { if (self = [super initWithWindowNibName:@"Preferences"]) { // ... } return self; } - (void)awakeFromNib { NSView * view = [[self window] contentView]; // :TODO: setup subviews //view.frame = self.accountsView.frame; self.accountsView.frame = view.frame; [view addSubview:self.accountsView]; } - (IBAction)showGeneral:(id)sender { NSLog(@":TODO:"); } - (IBAction)showAccounts:(id)sender { NSLog(@":TODO:"); } - (IBAction)showAccountSetupWindow:(id)sender { if (!self.accountSetupWindowController) { self.accountSetupWindowController = [[[AccountSetupWindowController alloc] init] autorelease ]; [self.accountSetupWindowController.window center]; } [self.accountSetupWindowController showWindow:nil]; } - (void)dealloc { [_accountsView release], _accountsView = nil; [_accountSetupWindowController release], _accountSetupWindowController = nil ; [super dealloc]; } @end