- add - (BOOL) removeObjectsWithClass:(Class _Nonnull) class
- fix - (id _Nonnull) saveLocally:(id _Nonnull) object - upgrade libraries
This commit is contained in:
1 parent
874707e958
commit
99e06e67db
239 files changed
+13154
-6570
No files matched your search
Generated
+6
-1
@@ -1,11 +1,15 @@
|
||||
# RZDataBinding
|
||||
|
||||
[](http://cocoadocs.org/docsets/RZDataBinding)
|
||||
[](https://circleci.com/gh/Raizlabs/RZDataBinding)
|
||||
[](http://cocoapods.org/pods/RZDataBinding)
|
||||
[](http://cocoapods.org/pods/RZDataBinding)
|
||||
|
||||
<p align="center">
|
||||
<img src="http://cl.ly/image/1r0I0x401W2m/chain.png"
|
||||
alt="RZDataBinding">
|
||||
</p>
|
||||
|
||||
## Overview
|
||||
RZDataBinding is a framework designed to help maintain data integrity in your iOS or OS X app. It is built using the standard Key-Value Observation (KVO) framework, but is safer and provides additional functionality. Like KVO, RZDataBinding helps to avoid endless delegate chains by establishing direct callbacks for when an object changes state.
|
||||
|
||||
@@ -30,7 +34,8 @@ alt="RZDataBinding">
|
||||
|
||||
The demo shows a basic usage of RZDataBinding, but is by no means the canonical or most advanced use case.
|
||||
|
||||
##Usage
|
||||
## Usage
|
||||
|
||||
**Register a callback for when the keypath of an object changes:**
|
||||
``` obj-c
|
||||
// Register a selector to be called on a given target whenever keyPath changes on the receiver.
|
||||
|
||||
@@ -444,8 +444,8 @@ void rz_swizzleDeallocIfNeeded(Class class);
|
||||
{
|
||||
@synchronized (self) {
|
||||
NSHashTable *observers = ^{
|
||||
@synchronized (_observers) {
|
||||
return [_observers copy];
|
||||
@synchronized (self->_observers) {
|
||||
return [self->_observers copy];
|
||||
}
|
||||
}();
|
||||
|
||||
|
||||
+1
-1
@@ -101,7 +101,7 @@
|
||||
*
|
||||
* @see NSObject+RZDBCoalesce for how to support coalesced callbacks.
|
||||
*/
|
||||
+ (void)coalesceBlock:(void (^)())coalesceBlock;
|
||||
+ (void)coalesceBlock:(void (^)(void))coalesceBlock;
|
||||
|
||||
/**
|
||||
* Cannot instantiate RZDBCoalesce directly. Use the class methods instead.
|
||||
|
||||
+1
-1
@@ -98,7 +98,7 @@ static NSString* const kRZDBCoalesceStorageKey = @"RZDBCoalesce";
|
||||
}
|
||||
}
|
||||
|
||||
+ (void)coalesceBlock:(void (^)())coalesceBlock
|
||||
+ (void)coalesceBlock:(void (^)(void))coalesceBlock
|
||||
{
|
||||
NSParameterAssert(coalesceBlock);
|
||||
|
||||
|
||||
Reference in new issue
Block a user