ResKnife/Cocoa/Categories/NSNumber-Range.h

10 lines
320 B
C
Raw Normal View History

2002-10-12 08:45:54 +00:00
#import <Foundation/Foundation.h>
@interface NSNumber (NGSRange)
2002-10-12 08:45:54 +00:00
- (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