https://github.com/rannie/hrkeyvalueobserver
Lightness KVO helper.
https://github.com/rannie/hrkeyvalueobserver
Last synced: 8 months ago
JSON representation
Lightness KVO helper.
- Host: GitHub
- URL: https://github.com/rannie/hrkeyvalueobserver
- Owner: Rannie
- Created: 2014-09-11T07:01:06.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2014-09-11T07:25:47.000Z (about 11 years ago)
- Last Synced: 2025-01-02T02:43:26.449Z (9 months ago)
- Language: Objective-C
- Size: 145 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
HRKeyValueObserver
==================## Description
A lightness KVO helper class.
Avoid excessive KVO code.## Usage
Single keypath observer- (instancetype)initWithObject:(id)object keyPath:(NSString *)keyPath target:(id)target selector:(SEL)selector;
Keypaths perform one selector- (instancetype)initWithObject:(id)object keyPathList:(NSArray *)keyPaths target:(id)target selector:(SEL)selector;
Keypaths perform different selectors- (instancetype)initWithObject:(id)object keyPathSelectorMap:(NSDictionary *)map target:(id)target;