Minor cleanup in handleNotification: method of GormClassEditor.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@23771 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2006-10-06 04:17:37 +00:00
parent 5ef4bde45d
commit f0119f3465
2 changed files with 16 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2006-10-06 00:16-EDT Gregory John Casamento <greg_casamento@yahoo.com>
* GormCore/GormClassEditor.m: Minor cleanup in handleNotification:
method.
2006-10-05 13:16-EDT Gregory John Casamento <greg_casamento@yahoo.com>
* English.lproj/GormClassEditor.gorm: Added new gorm file to hold

View file

@ -157,6 +157,10 @@ NSString *GormSwitchViewPreferencesNotification = @"GormSwitchViewPreferencesNot
selector: @selector(handleNotification:)
name: GormSwitchViewPreferencesNotification
object: nil];
[nc addObserver: self
selector: @selector(handleNotification:)
name: GormDidAddClassNotification
object: nil];
// kludge to prevent it from having resize issues.
[classesView setContentView: scrollView];
@ -207,7 +211,10 @@ NSString *GormSwitchViewPreferencesNotification = @"GormSwitchViewPreferencesNot
- (void) handleNotification: (NSNotification *)notification
{
[self switchView];
if([[notification name] isEqualToString: GormSwitchViewPreferencesNotification])
{
[self switchView];
}
}
- (void) browserClick: (id)sender
@ -501,6 +508,9 @@ NSString *GormSwitchViewPreferencesNotification = @"GormSwitchViewPreferencesNot
anitem = [[browserView selectedCell] stringValue];
}
if(anitem == nil)
return;
if ([anitem isKindOfClass: [GormOutletActionHolder class]])
{
id itemBeingEdited = [outlineView itemBeingEdited];