Skip to content

Commit

Permalink
Add init and remove debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
gcasa committed Dec 29, 2024
1 parent 9f208fe commit a4a3a6e
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions GormCore/GormObjectViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,18 @@

@implementation GormObjectViewController

- (instancetype) init
{
self = [super init];
if (self != nil)
{
_document = nil;
_iconView = nil;
_outlineView = nil;
}
return self;
}

- (void) dealloc
{
RELEASE(_document);
Expand Down Expand Up @@ -47,13 +59,13 @@ - (void) setOutlineView: (id)outlineView

- (IBAction) iconView: (id)sender
{
NSLog(@"Called %@", NSStringFromSelector(_cmd));
NSDebugLog(@"Called %@", NSStringFromSelector(_cmd));
[self resetDisplayView: _iconView];
}

- (IBAction) outlineView: (id)sender
{
NSLog(@"Called %@", NSStringFromSelector(_cmd));
NSDebugLog(@"Called %@", NSStringFromSelector(_cmd));
[_document deactivateEditors];
[[_outlineView documentView] reloadData];
[_document reactivateEditors];
Expand All @@ -63,7 +75,7 @@ - (IBAction) outlineView: (id)sender
- (void) resetDisplayView: (NSView *)view
{
[displayView setContentView: view];
NSLog(@"displayView = %@", view);
NSDebugLog(@"displayView = %@", view);
}

@end

0 comments on commit a4a3a6e

Please sign in to comment.