mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-08 08:00:34 +00:00
Fix for set accessor methods.
Reveiwed by me.
This commit is contained in:
1 parent
15b05304cc
commit
818c7dac3d
2 files changed
+4
-2
No files matched your search
@@ -89,8 +89,8 @@ var CPObjectAccessorsForClassKey = @"$CPObjectAccessorsForClassKey",
|
||||
accessor = accessors[aKey] = [1, @selector(_arrayValueForKey:)];
|
||||
|
||||
// Unordered to-many
|
||||
else if ([theClass instancesRespondToSelector:sel_getUid("objectIn" + capitalizedKey + "atIndex:")] ||
|
||||
[theClass instancesRespondToSelector:sel_getUid(key + "AtIndexes:")])
|
||||
else if ([theClass instancesRespondToSelector:sel_getUid("enumeratorOf" + capitalizedKey)] ||
|
||||
[theClass instancesRespondToSelector:sel_getUid("memberOf" + capitalizedKey + ":")])
|
||||
accessor = accessors[aKey] = [1, @selector(_setValueForKey:)];
|
||||
}
|
||||
|
||||
|
||||
@@ -471,6 +471,8 @@ CPLog(@"Got some class: %@", inst);
|
||||
*/
|
||||
- (CPString)className
|
||||
{
|
||||
// FIXME: Why doesn't this work in KVO???
|
||||
// return class_getName([self class]);
|
||||
return isa.name;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user