ASCII Issues
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.