Re: NSRange can't find definition anywhere
Re: NSRange can't find definition anywhere
- Subject: Re: NSRange can't find definition anywhere
- From: Shawn Erickson <email@hidden>
- Date: Mon, 1 Jul 2002 10:56:13 -0700
On Monday, July 1, 2002, at 10:43 AM, Ken Tozier wrote:
I just did a search on all the documentation on my computer and Apple's
developer site and couldn't find a single reference that showed the
definition of an NSRange struct. Could someone send me a link or the
definition itself?
<
http://developer.apple.com/techpubs/macosx/Cocoa/Reference/Foundation/ObjC_classic/
TypesAndConstants/FoundationTypesConstants.html>
or from...
<
http://developer.apple.com/techpubs/macosx/Cocoa/TasksAndConcepts/ProgrammingTopics/
GeometryandRange/index.html>
NSRange
typedef struct _NSRange {
unsigned int location;
unsigned int length;
} NSRange;
Field descriptions
location
Start index.
length
Number of items in the range.
Discussion
An NSRange describes a portion of a series-such as characters in a
string or objects in an NSArray. Its location member gives the start
index (0 is the first, as in C arrays), and its length member gives the
number of items in the range (and can be zero).
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.