mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-09 18:30:59 +00:00
CPArrayController works simply with bindings and arrangedObjects
This commit is contained in:
1 parent
4de3a34a3e
commit
9bbe51fa64
5 files changed
+73
-54
No files matched your search
@@ -19,6 +19,11 @@
|
||||
[self exposeBinding:"contentObject"];
|
||||
}
|
||||
|
||||
+ (CPSet)keyPathsForValuesAffectingValueForContentObject
|
||||
{
|
||||
return [CPSet setWithObjects:"content"];
|
||||
}
|
||||
|
||||
+ (BOOL)automaticallyNotifiesObserversForKey:(CPString)aKey
|
||||
{
|
||||
if (aKey === @"contentObject")
|
||||
@@ -89,7 +94,7 @@
|
||||
|
||||
- (void)setObjectClass:(Class)aClass
|
||||
{
|
||||
_defaultClassName = [aClass name];
|
||||
_defaultClassName = [aClass className];
|
||||
}
|
||||
|
||||
- (Class)objectClass
|
||||
@@ -134,7 +139,7 @@
|
||||
|
||||
- (BOOL)isEditable
|
||||
{
|
||||
return _isEditable;
|
||||
return _editable;
|
||||
}
|
||||
|
||||
- (void)setEditable:(BOOL)isEditable
|
||||
@@ -322,7 +327,7 @@
|
||||
{
|
||||
if (aKeyPath.indexOf("@") === 0)
|
||||
{
|
||||
var proxy = [[_CPObservationProxy alloc] initWithKeyPath:aKeyPath observer:anObsever object:self],
|
||||
var proxy = [[_CPObservationProxy alloc] initWithKeyPath:aKeyPath observer:anObserver object:self],
|
||||
index = [_observationProxies indexOfObject:proxy];
|
||||
|
||||
proxy = [_observationProxies objectAtIndex:index];
|
||||
|
||||
Reference in new issue
Block a user