mirror of
https://github.com/gnustep/apps-gorm.git
synced 2025-04-23 06:20:47 +00:00
Fix instance where document is not updated for custom class/first responder change.
This commit is contained in:
parent
a184d826fb
commit
84da56d765
3 changed files with 7 additions and 6 deletions
|
@ -42,7 +42,9 @@
|
|||
NSString *_parentClassName;
|
||||
NSUInteger _rowToSelect;
|
||||
}
|
||||
|
||||
- (void) select: (id)sender;
|
||||
|
||||
@end
|
||||
|
||||
#endif
|
||||
|
|
|
@ -40,7 +40,6 @@
|
|||
{
|
||||
if (self == [GormCustomClassInspector class])
|
||||
{
|
||||
// TBD
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -323,6 +322,7 @@
|
|||
if(nameForObject != nil)
|
||||
{
|
||||
[super ok: sender];
|
||||
|
||||
if (![stringValue isEqualToString: classForObject])
|
||||
{
|
||||
[_classManager setCustomClass: stringValue
|
||||
|
@ -340,7 +340,9 @@
|
|||
[self _replaceWithCellClassForClassName: stringValue];
|
||||
}
|
||||
else
|
||||
NSLog(@"name for object %@ returned as nil",[self object]);
|
||||
{
|
||||
NSLog(@"name for object %@ returned as nil",[self object]);
|
||||
}
|
||||
}
|
||||
|
||||
// Browser delegate
|
||||
|
@ -357,10 +359,6 @@ createRowsForColumn: (NSInteger)column
|
|||
NSInteger i = 0;
|
||||
|
||||
classes = [self _generateClassList];
|
||||
// [NSMutableArray arrayWithObject: _parentClassName];
|
||||
// get a list of all of the classes allowed and the class to be shown.
|
||||
//[classes addObjectsFromArray:
|
||||
// [_classManager allCustomSubclassesOf: _parentClassName]];
|
||||
|
||||
// enumerate through the classes...
|
||||
e = [classes objectEnumerator];
|
||||
|
|
|
@ -272,6 +272,7 @@
|
|||
hasConnections = NO;
|
||||
}
|
||||
}
|
||||
[super ok: sender];
|
||||
[object setClassName: title];
|
||||
}
|
||||
@end
|
||||
|
|
Loading…
Reference in a new issue