mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-12-06 04:35:32 +00:00
Fix for custom objects.
Reviewed by me.
This commit is contained in:
1 parent
48f0aa0b78
commit
12d03a5128
1 file changed
+12
-1
@@ -47,10 +47,21 @@ var _CPCibCustomObjectClassName = @"_CPCibCustomObjectClassName";
|
||||
{
|
||||
var theClass = CPClassFromString(_className);
|
||||
|
||||
#if DEBUG
|
||||
// Hey this is us!
|
||||
if (theClass === [self class])
|
||||
{
|
||||
_className = @"CPObject";
|
||||
|
||||
return self;
|
||||
}
|
||||
|
||||
if (!theClass)
|
||||
{
|
||||
#if DEBUG
|
||||
CPLog("Unknown class \"" + _className + "\" in cib file");
|
||||
#endif
|
||||
theClass = [CPObject class];
|
||||
}
|
||||
|
||||
if (theClass === [CPApplication class])
|
||||
return [CPApplication sharedApplication];
|
||||
|
||||
Reference in new issue
Block a user