O'Reilly logo

Cocoa in a Nutshell by James Duncan Davidson, Michael Beam

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Ranges

These functions are used to create and manipulate NSRange structures.

NSEqualRanges

BOOL NSEqualRanges(NSRange range1, NSRange range2)

NSIntersectionRange

NSRange NSIntersectionRange(NSRange range1, NSRange range2)

NSLocationInRange

BOOL NSLocationInRange(unsigned int index, NSRange aRange)

NSMakeRange

NSRange NSMakeRange(unsigned int location, unsigned int length)

NSMaxRange

unsigned int NSMaxRange(NSRange range)

NSRangeFromString

NSRange NSRangeFromString(NSString *aString)

NSStringFromRange

NSString *NSStringFromRange(NSRange range)

NSUnionRange

NSRange NSUnionRange(NSRange range1, NSRange range2)

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required