Re: Converting NSArray of NSString elements into binary?
Re: Converting NSArray of NSString elements into binary?
- Subject: Re: Converting NSArray of NSString elements into binary?
- From: "R.L. Grigg" <email@hidden>
- Date: Mon, 1 Oct 2007 19:48:06 -0700
On Oct 1, 2007, at 7:27 PM, Scott F Bayes wrote:
Replace the %x in fscanf() with %d for decimal text representation.
The %d or %x skips all leading whitespace including newlines, so
shouldn't matter how many numbers you have on a line.
The Cocoa approach looks like a bit more of a struggle than the above.
Scott,
I'm beginning to think so too. I just discovered that NSString
componentsSeparatedByString:@" " is not the same thing as
componentsSeparatedByWhiteSpace, which doesn't exist, making the
Cocoa approach not so useful in my situation. :(
Your clever idea to use fscanf with C indexing hadn't occurred to me.
I will pursue this route.
Thanks!
Russ
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden