• 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: NSScanner problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSScanner problem


  • Subject: Re: NSScanner problem
  • From: "M. Uli Kusterer" <email@hidden>
  • Date: Sat, 2 Oct 2004 11:01:37 +0200

At 10:48 Uhr +0200 02.10.2004, Peter Karlsson wrote:
"5, Apple, Cocoa, Macintosh, Programmer, Development"

I want to extract the strings in a loop, example:

First I get the string "5", then the string "Apple", then the string
"Cocoa" and so on. I think this is a job for NSScanner, can someone please
tell me how?

Actually, this is more a job for NSString, I'd say. Check out -(NSArray*)componentsSeparatedByString:.
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
References: 
 >NSScanner problem (From: "Peter Karlsson" <email@hidden>)

  • Prev by Date: [NEWBIE]: Dynamically loading NSViews
  • Next by Date: Image export/import question
  • Previous by thread: Re: NSScanner problem
  • Next by thread: Fwd: Problems with NSFileHandle and à/ò/ì... chars
  • Index(es):
    • Date
    • Thread