From 35d8f919cc65f960b17722ce4b8953edbe195301 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Fri, 4 Jan 2008 12:02:33 -0800 Subject: [PATCH] Refactoring _expandedRegisters --- Source/DebuggerWindowController.h | 2 +- Source/DebuggerWindowController.m | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Source/DebuggerWindowController.h b/Source/DebuggerWindowController.h index 30f3b9d..cc2f20c 100644 --- a/Source/DebuggerWindowController.h +++ b/Source/DebuggerWindowController.h @@ -27,7 +27,7 @@ IBOutlet NSTreeController *registerController; IBOutlet NSOutlineView *registerView; - NSMutableArray *_expandedRegisters; + NSMutableArray *expandedRegisters; IBOutlet NSTextField *_status; IBOutlet NSTextField *_error; diff --git a/Source/DebuggerWindowController.m b/Source/DebuggerWindowController.m index cc80218..0f1460d 100644 --- a/Source/DebuggerWindowController.m +++ b/Source/DebuggerWindowController.m @@ -35,7 +35,7 @@ if (self = [super initWithWindowNibName:@"Debugger"]) { connection = cnx; - _expandedRegisters = [[NSMutableArray alloc] init]; + expandedRegisters = [[NSMutableArray alloc] init]; } return self; } @@ -67,7 +67,7 @@ */ - (void)dealloc { - [_expandedRegisters release]; + [expandedRegisters release]; [super dealloc]; } @@ -158,7 +158,7 @@ for (int i = 0; i < [registerView numberOfRows]; i++) { - int index = [_expandedRegisters indexOfObject:[[[registerView itemAtRow:i] observedObject] variable]]; + int index = [expandedRegisters indexOfObject:[[[registerView itemAtRow:i] observedObject] variable]]; if (index != NSNotFound) { [registerView expandItem:[registerView itemAtRow:i]]; @@ -274,7 +274,7 @@ [connection getProperty:[[obj attributeForName:@"fullname"] stringValue] forElement:notifObj]; } - [_expandedRegisters addObject:[obj variable]]; + [expandedRegisters addObject:[obj variable]]; } /** @@ -282,7 +282,7 @@ */ - (void)outlineViewItemDidCollapse:(id)notif { - [_expandedRegisters removeObject:[[[[notif userInfo] objectForKey:@"NSObject"] observedObject] variable]]; + [expandedRegisters removeObject:[[[[notif userInfo] objectForKey:@"NSObject"] observedObject] variable]]; NSLog(@"outlineViewDidCollapse:%@", notif); } -- 2.43.5