mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-17 22:11:18 +00:00
Documentation.
This commit is contained in:
1 parent
271b935ba2
commit
d2f3ceaf67
1 file changed
+10
@@ -69,6 +69,16 @@
|
||||
[self[KVOProxyKey] _removeObserver:anObserver forKeyPath:aPath];
|
||||
}
|
||||
|
||||
/*!
|
||||
Whether -willChangeValueForKey/-didChangeValueForKey should automatically be invoked when the
|
||||
setter of the given key is used. The default is YES. If you override this method to return NO
|
||||
for some key, you will need to call -willChangeValueForKey/-didChangeValueForKey manually to
|
||||
be KVO compliant.
|
||||
|
||||
The default implementation of this method will check if the receiving class implements
|
||||
`+ (BOOL)automaticallyNotifiesObserversOf<aKey>` and return the response of that method if it
|
||||
exists.
|
||||
*/
|
||||
+ (BOOL)automaticallyNotifiesObserversForKey:(CPString)aKey
|
||||
{
|
||||
var capitalizedKey = aKey.charAt(0).toUpperCase() + aKey.substring(1),
|
||||
|
||||
Reference in new issue
Block a user