Fixed: missing self. in call to _delegate.

Small formatting and code tweaks as well.
This commit is contained in:
Aparajita Fishman committed 2013-05-09 07:31:11 -04:00
1 parent e7ad1a1f7a
commit 01291591b7
1 file changed
+6 -3
+6 -3
View File
@@ -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;