Fix for "unkown class NSObject" warnings.

[#166 state:resolved].

Reviewed by me.
This commit is contained in:
Francisco Ryan Tolmasky I
2008-12-15 00:48:27 -08:00
parent 7c117f22a7
commit c2b9ebd4b9
2 changed files with 6 additions and 0 deletions
+3
View File
@@ -71,6 +71,9 @@ var CPCibObjectDataKey = @"CPCibObjectDataKey";
[CPMenu setMenuBarVisible:YES];
}
if (topLevelObjects)
[topLevelObjects addObjectsFromArray:[objectData topLevelObjects]];
/*
// [objectData establishConnectionsWithOwner:owner topLevelObjects:topLevelObjects];
// [objectData cibInstantiateWithOwner:owner topLevelObjects:topLevelObjects];
+3
View File
@@ -34,6 +34,9 @@ var _CPCibCustomObjectClassName = @"_CPCibCustomObjectClassName";
if (!theClass)
CPLog("Unknown class \"" + _className + "\" in cib file");
if (theClass === [CPApplication class])
return [CPApplication sharedApplication];
return [[theClass alloc] init];
}