diff --git a/PCLib/PCHistoryController.m b/PCLib/PCHistoryController.m index bcf768e..432d437 100644 --- a/PCLib/PCHistoryController.m +++ b/PCLib/PCHistoryController.m @@ -44,7 +44,7 @@ [[NSNotificationCenter defaultCenter] postNotificationName:@"FileBecomesEditedNotification" object:file]; //[browser selectRow:0 inColumn:0]; - RELEASE(file); + AUTORELEASE(file); } - (void)setBrowser:(NSBrowser *)aBrowser diff --git a/PCLib/PCProject.m b/PCLib/PCProject.m index 3c98ed3..29f436d 100644 --- a/PCLib/PCProject.m +++ b/PCLib/PCProject.m @@ -33,6 +33,8 @@ #import "PCEditorController.h" #import "PCHistoryController.h" +#define ENABLE_HISTORY + @interface PCProject (CreateUI) - (void)_initUI; @@ -118,6 +120,7 @@ * File Browser */ +#ifdef ENABLE_HISTORY historyController = [[PCHistoryController alloc] initWithProject:self]; history = [[NSBrowser alloc] initWithFrame:NSMakeRect(320,372,232,60)]; @@ -132,7 +135,7 @@ [_c_view addSubview:history]; RELEASE(history); - +#endif /* * Left button matrix */