mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-27 08:55:52 +00:00
Fixed: missing self. in call to _delegate.
Small formatting and code tweaks as well.
This commit is contained in:
1 parent
e7ad1a1f7a
commit
01291591b7
1 file changed
+6
-3
@@ -469,11 +469,14 @@ var _CPKeyedUnarchiverDecodeObjectAtIndex = function(self, anIndex)
|
||||
if (!theClass)
|
||||
theClass = CPClassFromString(className);
|
||||
|
||||
if (!theClass && (self._delegateSelectors & CPKeyedUnarchiverDelegate_unarchiver_cannotDecodeObjectOfClassName_originalClasses_))
|
||||
theClass = [_delegate unarchiver:self cannotDecodeObjectOfClassName:className originalClasses:classes];
|
||||
if (!theClass &&
|
||||
(self._delegateSelectors & CPKeyedUnarchiverDelegate_unarchiver_cannotDecodeObjectOfClassName_originalClasses_))
|
||||
{
|
||||
theClass = [self._delegate unarchiver:self cannotDecodeObjectOfClassName:className originalClasses:classes];
|
||||
}
|
||||
|
||||
if (!theClass)
|
||||
[CPException raise:CPInvalidUnarchiveOperationException reason:@"-[CPKeyedUnarchiver decodeObjectForKey:]: cannot decode object of class (" + className + @")"];
|
||||
[CPException raise:CPInvalidUnarchiveOperationException format:@"-[CPKeyedUnarchiver decodeObjectForKey:]: cannot decode object of class (%@)", className];
|
||||
|
||||
var savedPlistObject = self._plistObject;
|
||||
|
||||
|
||||
Reference in new issue
Block a user