OLD | NEW |
1 //------------------------------------------------------------------------------
--------- | 1 //------------------------------------------------------------------------------
--------- |
2 // $Id: OCMConstraint.h 57 2010-07-19 06:14:27Z erik $ | 2 // $Id$ |
3 // Copyright (c) 2007-2010 by Mulle Kybernetik. See License file for details. | 3 // Copyright (c) 2007-2010 by Mulle Kybernetik. See License file for details. |
4 //------------------------------------------------------------------------------
--------- | 4 //------------------------------------------------------------------------------
--------- |
5 | 5 |
6 #import <Foundation/Foundation.h> | 6 #import <Foundation/Foundation.h> |
7 | 7 |
8 | 8 |
9 @interface OCMConstraint : NSObject | 9 @interface OCMConstraint : NSObject |
10 | 10 |
11 + (id)constraint; | 11 + (id)constraint; |
12 - (BOOL)evaluate:(id)value; | 12 - (BOOL)evaluate:(id)value; |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 | 55 |
56 - (id)initWithConstraintBlock:(BOOL (^)(id))block; | 56 - (id)initWithConstraintBlock:(BOOL (^)(id))block; |
57 | 57 |
58 @end | 58 @end |
59 | 59 |
60 #endif | 60 #endif |
61 | 61 |
62 | 62 |
63 #define CONSTRAINT(aSelector) [OCMConstraint constraintWithSelector:aSelector on
Object:self] | 63 #define CONSTRAINT(aSelector) [OCMConstraint constraintWithSelector:aSelector on
Object:self] |
64 #define CONSTRAINTV(aSelector, aValue) [OCMConstraint constraintWithSelector:aSe
lector onObject:self withValue:(aValue)] | 64 #define CONSTRAINTV(aSelector, aValue) [OCMConstraint constraintWithSelector:aSe
lector onObject:self withValue:(aValue)] |
OLD | NEW |