- add - (BOOL) removeObjectsWithClass:(Class _Nonnull) class

- fix - (id _Nonnull) saveLocally:(id _Nonnull) object
- upgrade libraries
This commit is contained in:
giuseppenuc committed 2018-10-10 01:16:12 +02:00
1 parent 874707e958
commit 99e06e67db
239 files changed
+13154 -6570

No files matched your search

+6 -1
View File
@@ -1,11 +1,15 @@
# RZDataBinding
[![Version](https://img.shields.io/cocoapods/v/RZDataBinding.svg?style=flat)](http://cocoadocs.org/docsets/RZDataBinding)
[![CircleCI](https://img.shields.io/circleci/project/github/Raizlabs/RZDataBinding/master.svg)](https://circleci.com/gh/Raizlabs/RZDataBinding)
[![License](https://img.shields.io/cocoapods/l/RZDataBinding.svg?style=flat)](http://cocoapods.org/pods/RZDataBinding)
[![Platform](https://img.shields.io/cocoapods/p/RZDataBinding.svg?style=flat)](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
View File
@@ -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
View File
@@ -98,7 +98,7 @@ static NSString* const kRZDBCoalesceStorageKey = @"RZDBCoalesce";
}
}
+ (void)coalesceBlock:(void (^)())coalesceBlock
+ (void)coalesceBlock:(void (^)(void))coalesceBlock
{
NSParameterAssert(coalesceBlock);