• 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: Take part of a string
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Take part of a string


  • Subject: Re: Take part of a string
  • From: Andreas Monitzer <email@hidden>
  • Date: Sun, 2 Jun 2002 22:25:34 +0200

On Sunday, June 2, 2002, at 10:17 , malcom wrote:

I have a NSString object with many text. Every block contained in this
object ends with a return character. I would to take the x block (where x is
an arbitrary number of block) and parse it as I would... Can I do this? How?

[[manytext componentsSeparatedByString:@"\r"] objectAtIndex:x]

might be a bit inefficient though (depends on your needs)

andy
--
DigiTunnel Public Beta released, offering full PPTP-support for Mac OS X!
http://www.gracion.com/vpn/
_______________________________________________
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: 
 >Take part of a string (From: malcom <email@hidden>)

  • Prev by Date: Take part of a string
  • Next by Date: Re: Launch a background task
  • Previous by thread: Take part of a string
  • Next by thread: Re: Take part of a string
  • Index(es):
    • Date
    • Thread