The iOS framework that grows only as fast as its documentation
NSRange Methods

Functions

NSRange NIMakeNSRangeFromCFRange (CFRange range)
 

Overview

For manipulating NSRange.

Function Documentation

NIMakeNSRangeFromCFRange

Create an NSRange object from a CFRange object.

NSRange NIMakeNSRangeFromCFRange:(CFRange)range;
Discussion
Returns
an NSRange object with the same values as the CFRange object.
Attention
This has the potential to behave unexpectedly because it converts the CFRange's long values to unsigned integers. Nimbus will fire off a debug assertion at runtime if the value will be chopped or the sign will change. Even though the assertion will fire, the method will still chop or change the sign of the values so you should take care to fix this.