Fix instance where document is not updated for custom class/first responder change.

This commit is contained in:
Gregory John Casamento 2021-12-09 00:00:08 -05:00
parent a184d826fb
commit 84da56d765
3 changed files with 7 additions and 6 deletions

View file

@ -42,7 +42,9 @@
NSString *_parentClassName;
NSUInteger _rowToSelect;
}
- (void) select: (id)sender;
@end
#endif

View file

@ -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];

View file

@ -272,6 +272,7 @@
hasConnections = NO;
}
}
[super ok: sender];
[object setClassName: title];
}
@end