• 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
ASCII Issues
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ASCII Issues


  • Subject: ASCII Issues
  • From: Mark T <email@hidden>
  • Date: Sun, 10 Feb 2002 23:46:55 -0500

I have an NSDocument based app that reads in text files with
-loadDataRepresentation: ofType: and immediately stores them in a string
using [[NSString alloc] initWithData: encoding:]. I was a little unsure
about what to use for the second argument, so I used NSASCIIStringEncoding.

Anyway, the file's contents are strings separated by ]'s(I'm not sure how
well that's gonna be transmitted by email, so, it's a dagger, or option-t,
or, according to NSLog, \U00a0). And that's really my problem. [theString
componentsSeparatedByString:@"]"] returns an array with only one element(it
should have about 4000). I can't find any way to make the ] that I type in
my code match the ] in the text file.

Any help would be appreciated.
Mark T.
_______________________________________________
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.

  • Follow-Ups:
    • Re: ASCII Issues; Subclassing NSBrowser
      • From: Mark T <email@hidden>
References: 
 >[slightly OT] rant (From: Darin Duphorne <email@hidden>)

  • Prev by Date: [slightly OT] rant
  • Next by Date: Re: newbie question on 'Cocoa Programming for Mac OS X'
  • Previous by thread: [slightly OT] rant
  • Next by thread: Re: ASCII Issues; Subclassing NSBrowser
  • Index(es):
    • Date
    • Thread