mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-08-25 04:57:03 +00:00
Fix for "unkown class NSObject" warnings.
[#166 state:resolved]. Reviewed by me.
This commit is contained in:
@@ -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];
|
||||
|
||||
@@ -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];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user