Re: What can I do with an NSRange in Objective-C?
Re: What can I do with an NSRange in Objective-C?
- Subject: Re: What can I do with an NSRange in Objective-C?
- From: mmalcolm crawford <email@hidden>
- Date: Sun, 8 Feb 2004 14:35:58 -0800
On Feb 8, 2004, at 2:22 PM, Jerry Krinock wrote:
I want to use the method -rangeOfCharacterFromSet on an NSString*.
Unfortunately, this method returns an NSRange, and there seems to be
very
few methods in the NSRange API for Objective-C. In particular, there
are no
accessor methods.
In Obj-C, NSRange is a structure, not an object:
typedef struct _NSRange
{
unsigned int location;
unsigned int length;
} NSRange;
(<
http://developer.apple.com/documentation/Cocoa/Reference/Foundation/
ObjC_classic/TypesAndConstants/FoundationTypes.html>).
For functions that operate on ranges, see:
<
http://developer.apple.com/documentation/Cocoa/Reference/Foundation/
ObjC_classic/Functions/FoundationFunctions.html>
For a general discussion, see:
<
http://developer.apple.com/documentation/Cocoa/Conceptual/
GeometryandRange/index.html>
mmalc
_______________________________________________
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.