mirror of
https://github.com/gnustep/apps-gorm.git
synced 2025-04-22 22:20:44 +00:00
Minor tidyup - use new awakeWithContext: method.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@5653 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
5c17f3142d
commit
06772dde28
1 changed files with 1 additions and 41 deletions
42
Gorm.m
42
Gorm.m
|
@ -596,48 +596,8 @@ NSString *GormLinkPboardType = @"GormLinkPboardType";
|
|||
testContainer = [NSUnarchiver unarchiveObjectWithData: d];
|
||||
if (testContainer != nil)
|
||||
{
|
||||
NSDictionary *nameTable = [testContainer nameTable];
|
||||
NSEnumerator *enumerator;
|
||||
id<IBConnectors> connection;
|
||||
id val;
|
||||
|
||||
[testContainer awakeWithContext: nil];
|
||||
RETAIN(testContainer);
|
||||
/*
|
||||
* establish connections
|
||||
*/
|
||||
enumerator = [[testContainer connections] objectEnumerator];
|
||||
while ((connection = [enumerator nextObject]) != nil)
|
||||
{
|
||||
val = [nameTable objectForKey: [connection source]];
|
||||
[connection setSource: val];
|
||||
val = [nameTable objectForKey: [connection destination]];
|
||||
[connection setDestination: val];
|
||||
[connection establishConnection];
|
||||
}
|
||||
/*
|
||||
* wake loaded objects.
|
||||
*/
|
||||
enumerator = [nameTable objectEnumerator];
|
||||
while ((val = [enumerator nextObject]) != nil)
|
||||
{
|
||||
if ([val respondsToSelector: @selector(awakeFromNib)])
|
||||
{
|
||||
[val awakeFromNib];
|
||||
}
|
||||
}
|
||||
/*
|
||||
* See if there are objects that should be made visible.
|
||||
*/
|
||||
val = [nameTable objectForKey: @"NSVisible"];
|
||||
if (val != nil && [val isKindOfClass: [NSArray class]] == YES)
|
||||
{
|
||||
unsigned pos = [val count];
|
||||
|
||||
while (pos-- > 0)
|
||||
{
|
||||
[[val objectAtIndex: pos] orderFront: self];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[nc postNotificationName: IBDidBeginTestingInterfaceNotification
|
||||
|
|
Loading…
Reference in a new issue