// // AddProjectWC.m // UUTUtils // // Created by zhuge on 2017/12/22. // Copyright © 2017年 zhuge. All rights reserved. // #import "AddProjectWC.h" #import "ProjectInfo.h" @interface AddProjectWC () @end @implementation AddProjectWC - (void)windowDidLoad { [super windowDidLoad]; [self initBean]; [self refreshUI_Bean]; } - (void) initBean { self.bean = [[ProjectInfo alloc] init]; } - (void) refreshUI_Bean { [self willChangeValueForKey:@"ocBean"]; self.ocBean = [[NSObjectController alloc] initWithContent:self.bean]; [self didChangeValueForKey:@"ocBean"]; } #pragma mark btn - (IBAction)onSaveBtn:(id)sender { // [_bean createKeystoreFile]; [_bean save]; [self.window close]; } @end