diff --git a/Applications/Gorm/GormAppDelegate.m b/Applications/Gorm/GormAppDelegate.m index 1374ba83..956af648 100644 --- a/Applications/Gorm/GormAppDelegate.m +++ b/Applications/Gorm/GormAppDelegate.m @@ -118,7 +118,7 @@ if(active != nil) { cm = [active classManager]; - s = [selectionOwner selection]; + s = [_selectionOwner selection]; } if(sel_isEqual(action, @selector(loadPalette:))) @@ -156,7 +156,7 @@ } } - return [selectionOwner respondsToSelector: @selector(copySelection)]; + return [_selectionOwner respondsToSelector: @selector(copySelection)]; } else if (sel_isEqual(action, @selector(cut:))) { @@ -174,8 +174,8 @@ } } - return ([selectionOwner respondsToSelector: @selector(copySelection)] - && [selectionOwner respondsToSelector: @selector(deleteSelection)]); + return ([_selectionOwner respondsToSelector: @selector(copySelection)] + && [_selectionOwner respondsToSelector: @selector(deleteSelection)]); } else if (sel_isEqual(action, @selector(delete:))) { @@ -193,7 +193,7 @@ } } - return [selectionOwner respondsToSelector: @selector(deleteSelection)]; + return [_selectionOwner respondsToSelector: @selector(deleteSelection)]; } else if (sel_isEqual(action, @selector(paste:))) { @@ -212,7 +212,7 @@ } } - return [selectionOwner respondsToSelector: @selector(pasteInSelection)]; + return [_selectionOwner respondsToSelector: @selector(pasteInSelection)]; } else if (sel_isEqual(action, @selector(setName:))) { @@ -259,7 +259,7 @@ if(sel_isEqual(action, @selector(createSubclass:))) { - NSArray *s = [selectionOwner selection]; + NSArray *s = [_selectionOwner selection]; id o = nil; NSString *name = nil; @@ -345,7 +345,7 @@ - (IBAction) stop: (id)sender { - if(isTesting == NO) + if(_isTesting == NO) { // [super stop: sender]; } @@ -365,12 +365,12 @@ /** Info Menu Actions */ - (IBAction) preferencesPanel: (id) sender { - if(! preferencesController) + if(! _preferencesController) { - preferencesController = [[GormPrefController alloc] init]; + _preferencesController = [[GormPrefController alloc] init]; } - [[preferencesController panel] makeKeyAndOrderFront:nil]; + [[_preferencesController panel] makeKeyAndOrderFront:nil]; } /** Document Menu Actions */ @@ -403,8 +403,8 @@ - (IBAction) copy: (id)sender { - if ([[selectionOwner selection] count] == 0 - || [selectionOwner respondsToSelector: @selector(copySelection)] == NO) + if ([[_selectionOwner selection] count] == 0 + || [_selectionOwner respondsToSelector: @selector(copySelection)] == NO) return; if([self isConnecting]) @@ -412,15 +412,15 @@ [self stopConnecting]; } - [(id)selectionOwner copySelection]; + [(id)_selectionOwner copySelection]; } - (IBAction) cut: (id)sender { - if ([[selectionOwner selection] count] == 0 - || [selectionOwner respondsToSelector: @selector(copySelection)] == NO - || [selectionOwner respondsToSelector: @selector(deleteSelection)] == NO) + if ([[_selectionOwner selection] count] == 0 + || [_selectionOwner respondsToSelector: @selector(copySelection)] == NO + || [_selectionOwner respondsToSelector: @selector(deleteSelection)] == NO) return; if([self isConnecting]) @@ -428,13 +428,13 @@ [self stopConnecting]; } - [(id)selectionOwner copySelection]; - [(id)selectionOwner deleteSelection]; + [(id)_selectionOwner copySelection]; + [(id)_selectionOwner deleteSelection]; } - (IBAction) paste: (id)sender { - if ([selectionOwner respondsToSelector: @selector(pasteInSelection)] == NO) + if ([_selectionOwner respondsToSelector: @selector(pasteInSelection)] == NO) return; if([self isConnecting]) @@ -442,14 +442,14 @@ [self stopConnecting]; } - [(id)selectionOwner pasteInSelection]; + [(id)_selectionOwner pasteInSelection]; } - (IBAction) delete: (id)sender { - if ([[selectionOwner selection] count] == 0 - || [selectionOwner respondsToSelector: @selector(deleteSelection)] == NO) + if ([[_selectionOwner selection] count] == 0 + || [_selectionOwner respondsToSelector: @selector(deleteSelection)] == NO) return; if([self isConnecting]) @@ -457,13 +457,13 @@ [self stopConnecting]; } - [(id)selectionOwner deleteSelection]; + [(id)_selectionOwner deleteSelection]; } - (IBAction) selectAll: (id)sender { - if ([[selectionOwner selection] count] == 0 - || [selectionOwner respondsToSelector: @selector(deleteSelection)] == NO) + if ([[_selectionOwner selection] count] == 0 + || [_selectionOwner respondsToSelector: @selector(deleteSelection)] == NO) return; if([self isConnecting]) @@ -471,7 +471,7 @@ [self stopConnecting]; } - [(id)selectionOwner deleteSelection]; + [(id)_selectionOwner deleteSelection]; } - (IBAction) selectAllItems: (id)sender @@ -483,47 +483,47 @@ - (IBAction) groupSelectionInSplitView: (id)sender { - if ([[selectionOwner selection] count] < 2 - || [selectionOwner respondsToSelector: @selector(groupSelectionInSplitView)] == NO) + if ([[_selectionOwner selection] count] < 2 + || [_selectionOwner respondsToSelector: @selector(groupSelectionInSplitView)] == NO) return; - [(GormGenericEditor *)selectionOwner groupSelectionInSplitView]; + [(GormGenericEditor *)_selectionOwner groupSelectionInSplitView]; } - (IBAction) groupSelectionInBox: (id)sender { - if ([selectionOwner respondsToSelector: @selector(groupSelectionInBox)] == NO) + if ([_selectionOwner respondsToSelector: @selector(groupSelectionInBox)] == NO) return; - [(GormGenericEditor *)selectionOwner groupSelectionInBox]; + [(GormGenericEditor *)_selectionOwner groupSelectionInBox]; } - (IBAction) groupSelectionInView: (id)sender { - if ([selectionOwner respondsToSelector: @selector(groupSelectionInView)] == NO) + if ([_selectionOwner respondsToSelector: @selector(groupSelectionInView)] == NO) return; - [(GormGenericEditor *)selectionOwner groupSelectionInView]; + [(GormGenericEditor *)_selectionOwner groupSelectionInView]; } - (IBAction) groupSelectionInScrollView: (id)sender { - if ([selectionOwner respondsToSelector: @selector(groupSelectionInScrollView)] == NO) + if ([_selectionOwner respondsToSelector: @selector(groupSelectionInScrollView)] == NO) return; - [(GormGenericEditor *)selectionOwner groupSelectionInScrollView]; + [(GormGenericEditor *)_selectionOwner groupSelectionInScrollView]; } - (IBAction) groupSelectionInMatrix: (id)sender { - if ([selectionOwner respondsToSelector: @selector(groupSelectionInMatrix)] == NO) + if ([_selectionOwner respondsToSelector: @selector(groupSelectionInMatrix)] == NO) return; - [(GormGenericEditor *)selectionOwner groupSelectionInMatrix]; + [(GormGenericEditor *)_selectionOwner groupSelectionInMatrix]; } - (IBAction) ungroup: (id)sender { - // NSLog(@"ungroup: selectionOwner %@", selectionOwner); - if ([selectionOwner respondsToSelector: @selector(ungroup)] == NO) + // NSLog(@"ungroup: _selectionOwner %@", _selectionOwner); + if ([_selectionOwner respondsToSelector: @selector(ungroup)] == NO) return; - [(GormGenericEditor *)selectionOwner ungroup]; + [(GormGenericEditor *)_selectionOwner ungroup]; } /** Classes actions */ diff --git a/GormCore/GormAbstractDelegate.h b/GormCore/GormAbstractDelegate.h index d38c828c..15ddde43 100644 --- a/GormCore/GormAbstractDelegate.h +++ b/GormCore/GormAbstractDelegate.h @@ -45,32 +45,32 @@ @interface GormAbstractDelegate : NSObject { - IBOutlet id gormMenu; - IBOutlet id guideLineMenuItem; + IBOutlet id _gormMenu; + IBOutlet id _guideLineMenuItem; - GormPrefController *preferencesController; - GormClassManager *classManager; - GormInspectorsManager *inspectorsManager; - GormPalettesManager *palettesManager; - GormPluginManager *pluginManager; - id selectionOwner; - BOOL isConnecting; - BOOL isTesting; - id testContainer; - NSMenu *mainMenu; // saves the main menu... - NSMenu *servicesMenu; // saves the services menu... - NSMenu *classMenu; // so we can set it for the class view - NSDictionary *menuLocations; - NSImage *linkImage; - NSImage *sourceImage; - NSImage *targetImage; - NSImage *gormImage; - NSImage *testingImage; - id connectSource; - id connectDestination; - NSMutableArray *testingWindows; - NSSet *topObjects; - NSDockTile *dockTile; + GormPrefController *_preferencesController; + GormClassManager *_classManager; + GormInspectorsManager *_inspectorsManager; + GormPalettesManager *_palettesManager; + GormPluginManager *_pluginManager; + id _selectionOwner; + BOOL _isConnecting; + BOOL _isTesting; + id _testContainer; + NSMenu *_mainMenu; // saves the main menu... + NSMenu *_servicesMenu; // saves the services menu... + NSMenu *_classMenu; // so we can set it for the class view + NSDictionary *_menuLocations; + NSImage *_linkImage; + NSImage *_sourceImage; + NSImage *_targetImage; + NSImage *_gormImage; + NSImage *_testingImage; + id _connectSource; + id _connectDestination; + NSMutableArray *_testingWindows; + NSSet *_topObjects; + NSDockTile *_dockTile; } // testing the interface diff --git a/GormCore/GormAbstractDelegate.m b/GormCore/GormAbstractDelegate.m index d30f35ba..473dc8b3 100644 --- a/GormCore/GormAbstractDelegate.m +++ b/GormCore/GormAbstractDelegate.m @@ -61,19 +61,19 @@ if ([self isInTool] == NO) { path = [bundle pathForImageResource: @"GormLinkImage"]; - linkImage = [[NSImage alloc] initWithContentsOfFile: path]; + _linkImage = [[NSImage alloc] initWithContentsOfFile: path]; path = [bundle pathForImageResource: @"GormSourceTag"]; - sourceImage = [[NSImage alloc] initWithContentsOfFile: path]; + _sourceImage = [[NSImage alloc] initWithContentsOfFile: path]; path = [bundle pathForImageResource: @"GormTargetTag"]; - targetImage = [[NSImage alloc] initWithContentsOfFile: path]; + _targetImage = [[NSImage alloc] initWithContentsOfFile: path]; path = [bundle pathForImageResource: @"Gorm"]; - gormImage = [[NSImage alloc] initWithContentsOfFile: path]; + _gormImage = [[NSImage alloc] initWithContentsOfFile: path]; path = [bundle pathForImageResource: @"GormTesting"]; - testingImage = [[NSImage alloc] initWithContentsOfFile: path]; + _testingImage = [[NSImage alloc] initWithContentsOfFile: path]; } // Initialize ivars - isTesting = NO; + _isTesting = NO; // regular notifications... [nc addObserver: self @@ -146,9 +146,9 @@ NSNotificationCenter *nc = [NSNotificationCenter defaultCenter]; [nc removeObserver: self]; - RELEASE(inspectorsManager); - RELEASE(palettesManager); - RELEASE(classManager); + RELEASE(_inspectorsManager); + RELEASE(_palettesManager); + RELEASE(_classManager); [super dealloc]; } @@ -277,22 +277,22 @@ if (document != nil) return [document classManager]; /* kept in the case one want access to the classManager without document */ - else if (classManager == nil) + else if (_classManager == nil) { - classManager = [[GormClassManager alloc] init]; + _classManager = [[GormClassManager alloc] init]; } - return classManager; + return _classManager; } - (id) connectDestination { - return connectDestination; + return _connectDestination; } - (id) connectSource { - return connectSource; + return _connectSource; } - (void) displayConnectionBetween: (id)source @@ -302,12 +302,12 @@ NSRect rect; - if (source != connectSource) + if (source != _connectSource) { - if (connectSource != nil) + if (_connectSource != nil) { window = [(GormDocument *)[self activeDocument] windowAndRect: &rect - forObject: connectSource]; + forObject: _connectSource]; if (window != nil) { NSView *view = [[window contentView] superview]; @@ -324,14 +324,14 @@ [window flushWindow]; } } - connectSource = source; + _connectSource = source; } - if (destination != connectDestination) + if (destination != _connectDestination) { - if (connectDestination != nil) + if (_connectDestination != nil) { window = [(GormDocument *)[self activeDocument] windowAndRect: &rect - forObject: connectDestination]; + forObject: _connectDestination]; if (window != nil) { NSView *view = [[window contentView] superview]; @@ -349,11 +349,11 @@ [window flushWindow]; } } - connectDestination = destination; + _connectDestination = destination; } - if (connectSource != nil) + if (_connectSource != nil) { - window = [(GormDocument *)[self activeDocument] windowAndRect: &rect forObject: connectSource]; + window = [(GormDocument *)[self activeDocument] windowAndRect: &rect forObject: _connectSource]; if (window != nil) { NSView *view = [[window contentView] superview]; @@ -366,16 +366,16 @@ [[NSColor greenColor] set]; NSFrameRectWithWidth(rect, 1); - [sourceImage compositeToPoint: imageRect.origin - operation: NSCompositeSourceOver]; + [_sourceImage compositeToPoint: imageRect.origin + operation: NSCompositeSourceOver]; [view unlockFocus]; [window flushWindow]; } } - if (connectDestination != nil && connectDestination == connectSource) + if (_connectDestination != nil && _connectDestination == _connectSource) { window = [(GormDocument *)[self activeDocument] windowAndRect: &rect - forObject: connectDestination]; + forObject: _connectDestination]; if (window != nil) { NSView *view = [[window contentView] superview]; @@ -389,17 +389,17 @@ [[NSColor purpleColor] set]; NSFrameRectWithWidth(rect, 1); - imageRect.origin.x += [targetImage size].width; - [targetImage compositeToPoint: imageRect.origin - operation: NSCompositeSourceOver]; + imageRect.origin.x += [_targetImage size].width; + [_targetImage compositeToPoint: imageRect.origin + operation: NSCompositeSourceOver]; [view unlockFocus]; [window flushWindow]; } } - else if (connectDestination != nil) + else if (_connectDestination != nil) { window = [(GormDocument *)[self activeDocument] windowAndRect: &rect - forObject: connectDestination]; + forObject: _connectDestination]; if (window != nil) { NSView *view = [[window contentView] superview]; @@ -412,8 +412,8 @@ [[NSColor purpleColor] set]; NSFrameRectWithWidth(rect, 1); - [targetImage compositeToPoint: imageRect.origin - operation: NSCompositeSourceOver]; + [_targetImage compositeToPoint: imageRect.origin + operation: NSCompositeSourceOver]; [view unlockFocus]; [window flushWindow]; } @@ -422,7 +422,7 @@ - (IBAction) testInterface: (id)sender { - if (isTesting == NO || [self isInTool]) + if (_isTesting == NO || [self isInTool]) { // top level objects NS_DURING @@ -433,7 +433,7 @@ NSData *data; NSArchiver *archiver; NSEnumerator *en; - NSDictionary *substituteClasses = [palettesManager substituteClasses]; + NSDictionary *substituteClasses = [_palettesManager substituteClasses]; NSString *subClassName; id obj; id savedDelegate = [NSApp delegate]; @@ -441,24 +441,24 @@ // which windows were open when testing started... - testingWindows = [[NSMutableArray alloc] init]; + _testingWindows = [[NSMutableArray alloc] init]; en = [[NSApp windows] objectEnumerator]; while((obj = [en nextObject]) != nil) { if([obj isVisible]) { - [testingWindows addObject: obj]; + [_testingWindows addObject: obj]; } } // set here, so that beginArchiving and endArchiving do not use templates. - isTesting = YES; - // [NSApp setApplicationIconImage: testingImage]; + _isTesting = YES; + // [NSApp setApplicationIconImage: _testingImage]; // Set up the dock tile... - dockTile = [[NSDockTile alloc] init]; - [dockTile setShowsApplicationBadge: YES]; - [dockTile setBadgeLabel: @"Test!"]; + _dockTile = [[NSDockTile alloc] init]; + [_dockTile setShowsApplicationBadge: YES]; + [_dockTile setBadgeLabel: @"Test!"]; archiver = [[NSArchiver alloc] init]; @@ -498,32 +498,32 @@ [notifCenter postNotificationName: IBWillBeginTestingInterfaceNotification object: self]; - if ([selectionOwner conformsToProtocol: @protocol(IBEditors)] == YES) + if ([_selectionOwner conformsToProtocol: @protocol(IBEditors)] == YES) { - [selectionOwner makeSelectionVisible: NO]; + [_selectionOwner makeSelectionVisible: NO]; } defaults = [NSUserDefaults standardUserDefaults]; - menuLocations = [[defaults objectForKey: @"NSMenuLocations"] copy]; + _menuLocations = [[defaults objectForKey: @"NSMenuLocations"] copy]; [defaults removeObjectForKey: @"NSMenuLocations"]; - servicesMenu = [NSApp servicesMenu]; + _servicesMenu = [NSApp servicesMenu]; - testContainer = [NSUnarchiver unarchiveObjectWithData: data]; - if (testContainer != nil) + _testContainer = [NSUnarchiver unarchiveObjectWithData: data]; + if (_testContainer != nil) { - NSMutableDictionary *nameTable = [testContainer nameTable]; + NSMutableDictionary *nameTable = [_testContainer nameTable]; NSMenu *aMenu = [nameTable objectForKey: @"NSMenu"]; - mainMenu = [NSApp mainMenu]; // save the menu before testing... + _mainMenu = [NSApp mainMenu]; // save the menu before testing... [[NSApp mainMenu] close]; [NSApp setMainMenu: aMenu]; // initialize the context. - RETAIN(testContainer); - topObjects = [testContainer topLevelObjects]; + RETAIN(_testContainer); + _topObjects = [_testContainer topLevelObjects]; [nameTable removeObjectForKey: @"NSServicesMenu"]; [nameTable removeObjectForKey: @"NSWindowsMenu"]; - [testContainer awakeWithContext: nil]; + [_testContainer awakeWithContext: nil]; [NSApp setDelegate: savedDelegate]; // makes sure the delegate isn't reset. /* @@ -631,7 +631,7 @@ GormSetNameController *panel; int returnPanel; NSTextField *textField; - NSArray *selectionArray = [selectionOwner selection]; + NSArray *selectionArray = [_selectionOwner selection]; id obj = [selectionArray objectAtIndex: 0]; NSString *name; @@ -657,15 +657,15 @@ { [[NSNotificationCenter defaultCenter] postNotificationName: GormToggleGuidelineNotification object:nil]; - if ( [guideLineMenuItem tag] == 0 ) + if ( [_guideLineMenuItem tag] == 0 ) { - [guideLineMenuItem setTitle:_(@"Turn GuideLine On")]; - [guideLineMenuItem setTag:1]; + [_guideLineMenuItem setTitle:_(@"Turn GuideLine On")]; + [_guideLineMenuItem setTag:1]; } - else if ( [guideLineMenuItem tag] == 1) + else if ( [_guideLineMenuItem tag] == 1) { - [guideLineMenuItem setTitle:_(@"Turn GuideLine Off")]; - [guideLineMenuItem setTag:0]; + [_guideLineMenuItem setTitle:_(@"Turn GuideLine Off")]; + [_guideLineMenuItem setTag:0]; } } @@ -699,7 +699,7 @@ - (IBAction) endTesting: (id)sender { - if (isTesting) + if (_isTesting) { NSNotificationCenter *nc = [NSNotificationCenter defaultCenter]; NSUserDefaults *defaults; @@ -712,7 +712,7 @@ /* * Make sure windows will go away when the container is destroyed. */ - e = [topObjects objectEnumerator]; + e = [_topObjects objectEnumerator]; while ((val = [e nextObject]) != nil) { if ([val isKindOfClass: [NSWindow class]] == YES) @@ -728,7 +728,7 @@ e = [[NSApp windows] objectEnumerator]; while ((val = [e nextObject]) != nil) { - if ([testingWindows containsObject: val] == NO && + if ([_testingWindows containsObject: val] == NO && [val isKindOfClass: [NSWindow class]] && [val isVisible]) { @@ -736,21 +736,21 @@ } } - // prevent saving of this, if the menuLocations have not previously been set. - if(menuLocations != nil) + // prevent saving of this, if the _menuLocations have not previously been set. + if(_menuLocations != nil) { defaults = [NSUserDefaults standardUserDefaults]; - [defaults setObject: menuLocations forKey: @"NSMenuLocations"]; - DESTROY(menuLocations); + [defaults setObject: _menuLocations forKey: @"NSMenuLocations"]; + DESTROY(_menuLocations); } // Restore windows and menus... - [NSApp setMainMenu: mainMenu]; - [NSApp setApplicationIconImage: gormImage]; + [NSApp setMainMenu: _mainMenu]; + [NSApp setApplicationIconImage: _gormImage]; [[NSApp mainMenu] display]; - RELEASE(dockTile); + RELEASE(_dockTile); - e = [testingWindows objectEnumerator]; + e = [_testingWindows objectEnumerator]; while ((val = [e nextObject]) != nil) { [val orderFront: self]; @@ -758,7 +758,7 @@ NS_DURING { - [NSApp setServicesMenu: servicesMenu]; + [NSApp setServicesMenu: _servicesMenu]; } NS_HANDLER { @@ -766,20 +766,20 @@ } NS_ENDHANDLER - isTesting = NO; + _isTesting = NO; - if ([selectionOwner conformsToProtocol: @protocol(IBEditors)] == YES) + if ([_selectionOwner conformsToProtocol: @protocol(IBEditors)] == YES) { - [selectionOwner makeSelectionVisible: YES]; + [_selectionOwner makeSelectionVisible: YES]; } [nc postNotificationName: IBDidEndTestingInterfaceNotification object: self]; - DESTROY(testingWindows); + DESTROY(_testingWindows); // deallocate - RELEASE(testContainer); + RELEASE(_testContainer); } } @@ -800,13 +800,13 @@ { [self stopConnecting]; } - [selectionOwner makeSelectionVisible: NO]; - selectionOwner = obj; + [_selectionOwner makeSelectionVisible: NO]; + _selectionOwner = obj; [[self inspectorsManager] updateSelection]; } else if ([name isEqual: IBWillCloseDocumentNotification]) { - selectionOwner = nil; + _selectionOwner = nil; } else if ([name isEqual: @"GormAddClassNotification"]) { @@ -829,64 +829,64 @@ - (void) awakeFromNib { // set the menu... - mainMenu = (NSMenu *)gormMenu; + _mainMenu = (NSMenu *)_gormMenu; } - (GormInspectorsManager*) inspectorsManager { - if (inspectorsManager == nil) + if (_inspectorsManager == nil) { - inspectorsManager = (GormInspectorsManager *)[GormInspectorsManager sharedInspectorManager]; + _inspectorsManager = (GormInspectorsManager *)[GormInspectorsManager sharedInspectorManager]; } - return inspectorsManager; + return _inspectorsManager; } - (BOOL) isConnecting { - return isConnecting; + return _isConnecting; } - (BOOL) isTestingInterface { - return isTesting; + return _isTesting; } - (void) setTestingInterface: (BOOL)testing { - isTesting = testing; + _isTesting = testing; } - (NSImage*) linkImage { - return linkImage; + return _linkImage; } - (GormPalettesManager*) palettesManager { - if (palettesManager == nil) + if (_palettesManager == nil) { - palettesManager = [[GormPalettesManager alloc] init]; + _palettesManager = [[GormPalettesManager alloc] init]; } - return palettesManager; + return _palettesManager; } - (GormPluginManager*) pluginManager { - if (pluginManager == nil) + if (_pluginManager == nil) { - pluginManager = [[GormPluginManager alloc] init]; + _pluginManager = [[GormPluginManager alloc] init]; } - return pluginManager; + return _pluginManager; } - (id) selectionOwner { - return (id)selectionOwner; + return (id)_selectionOwner; } - (id) selectedObject { - return [[selectionOwner selection] lastObject]; + return [[_selectionOwner selection] lastObject]; } - (id) documentForObject: (id)object @@ -911,40 +911,40 @@ - (void) startConnecting { - if (isConnecting == YES) + if (_isConnecting == YES) { return; } - if (connectSource == nil) + if (_connectSource == nil) { return; } - if (connectDestination - && [[self activeDocument] containsObject: connectDestination] == NO) + if (_connectDestination + && [[self activeDocument] containsObject: _connectDestination] == NO) { - NSLog(@"Oops - connectDestination not in active document"); + NSLog(@"Oops - _connectDestination not in active document"); return; } - if ([[self activeDocument] containsObject: connectSource] == NO) + if ([[self activeDocument] containsObject: _connectSource] == NO) { - NSLog(@"Oops - connectSource not in active document"); + NSLog(@"Oops - _connectSource not in active document"); return; } - isConnecting = YES; + _isConnecting = YES; [[self inspectorsManager] updateSelection]; } - (void) stopConnecting { [self displayConnectionBetween: nil and: nil]; - isConnecting = NO; - connectSource = nil; - connectDestination = nil; + _isConnecting = NO; + _connectSource = nil; + _connectDestination = nil; } - (NSMenu*) classMenu { - return classMenu; + return _classMenu; } // Methods to support external apps adding and deleting diff --git a/Tools/gormtool/AppDelegate.m b/Tools/gormtool/AppDelegate.m index 0002c2f7..215351e7 100644 --- a/Tools/gormtool/AppDelegate.m +++ b/Tools/gormtool/AppDelegate.m @@ -298,7 +298,7 @@ [NSClassSwapper setIsInInterfaceBuilder: YES]; - isTesting = NO; + _isTesting = NO; if ([[pi arguments] count] > 1) { @@ -524,7 +524,7 @@ if (opt != nil) { NSLog(@"Control-C to end"); - isTesting = YES; + _isTesting = YES; [self testInterface: self]; } } @@ -542,7 +542,7 @@ NSDebugLog(@"processInfo: %@", [NSProcessInfo processInfo]); [self process]; - if (isTesting == NO) + if (_isTesting == NO) { [NSApp terminate: nil]; }