mirror of
https://github.com/gnustep/apps-gorm.git
synced 2025-02-23 19:51:00 +00:00
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:
parent
5ef4bde45d
commit
f0119f3465
2 changed files with 16 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue