old mode 100644
new mode 100755
| | |
| | | |
| | | #import <Foundation/Foundation.h> |
| | | |
| | | #if TARGET_OS_IPHONE |
| | | |
| | | |
| | | #if TARGET_OS_IPHONE || TARGET_OS_TV |
| | | |
| | | #import <UIKit/UIKit.h> |
| | | #define MAS_VIEW UIView |
| | |
| | | * |
| | | * MASAttachKeys(view1, view2); |
| | | */ |
| | | #define MASAttachKeys(...) \ |
| | | NSDictionary *keyPairs = NSDictionaryOfVariableBindings(__VA_ARGS__); \ |
| | | for (id key in keyPairs.allKeys) { \ |
| | | id obj = keyPairs[key]; \ |
| | | NSAssert([obj respondsToSelector:@selector(setMas_key:)], \ |
| | | @"Cannot attach mas_key to %@", obj); \ |
| | | [obj setMas_key:key]; \ |
| | | #define MASAttachKeys(...) \ |
| | | { \ |
| | | NSDictionary *keyPairs = NSDictionaryOfVariableBindings(__VA_ARGS__); \ |
| | | for (id key in keyPairs.allKeys) { \ |
| | | id obj = keyPairs[key]; \ |
| | | NSAssert([obj respondsToSelector:@selector(setMas_key:)], \ |
| | | @"Cannot attach mas_key to %@", obj); \ |
| | | [obj setMas_key:key]; \ |
| | | } \ |
| | | } |
| | | |
| | | /** |