ResKnife/Cocoa/Categories/NSNumber-Range.h
2010-08-31 10:28:19 +00:00

10 lines
320 B
Objective-C

#import <Foundation/Foundation.h>
@interface NSNumber (NGSRange)
- (BOOL)isWithinRange:(NSRange)range; // location <= self <= location+length
- (BOOL)isExclusivelyWithinRange:(NSRange)range; // location < self < location+length
- (BOOL)isBoundedByRange:(NSRange)range; // location <= self < location+length
@end