Re: Chopping off the end of a string with - (void)deleteCharactersInRange:(NSRange)aRange
Re: Chopping off the end of a string with - (void)deleteCharactersInRange:(NSRange)aRange
- Subject: Re: Chopping off the end of a string with - (void)deleteCharactersInRange:(NSRange)aRange
- From: Finlay Dobbie <email@hidden>
- Date: Mon, 3 Mar 2003 22:11:01 +0000
On Monday, March 3, 2003, at 10:03 pm, Mark Ogilvie wrote:
Nor did I find much on an archive search. I know
that a NSRange object is a struct with two integers, start and length,
but I can't find anything on how you can create one from a string. Or
is there a more obvious way of shrinking a string?
You don't create one "from a string", you just create one. See the
Foundation Functions reference, specifically NSMakeRange et al. Or just
create it like any normal struct.
-- Finlay
_______________________________________________
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.