• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Chopping off the end of a string with - (void)deleteCharactersInRange:(NSRange)aRange
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Chopping off the end of a string with - (void)deleteCharactersInRange:(NSRange)aRange (From: Mark Ogilvie <email@hidden>)

  • Prev by Date: Chopping off the end of a string with - (void)deleteCharactersInRange:(NSRange)aRange
  • Next by Date: Re: iPhoto 2.0 plugins bundles
  • Previous by thread: Chopping off the end of a string with - (void)deleteCharactersInRange:(NSRange)aRange
  • Next by thread: Re: Chopping off the end of a string with - (void)deleteCharactersInRange:(NSRange)aRange
  • Index(es):
    • Date
    • Thread