• 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: Converting NSArray of NSString elements into binary?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Converting NSArray of NSString elements into binary?


  • Subject: Re: Converting NSArray of NSString elements into binary?
  • From: Scott F Bayes <email@hidden>
  • Date: Wed, 3 Oct 2007 11:06:47 +0900

You're very welcome.

ScottB

On Oct 2, 2007, at 11:48 , R.L. Grigg wrote:

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


References: 
 >Converting NSArray of NSString elements into binary? (From: "R.L. Grigg" <email@hidden>)
 >Re: Converting NSArray of NSString elements into binary? (From: Nick Zitzmann <email@hidden>)
 >Re: Converting NSArray of NSString elements into binary? (From: "R.L. Grigg" <email@hidden>)
 >Re: Converting NSArray of NSString elements into binary? (From: Scott F Bayes <email@hidden>)
 >Re: Converting NSArray of NSString elements into binary? (From: "R.L. Grigg" <email@hidden>)

  • Prev by Date: Re: Mapping ABPerson to Sync Services
  • Next by Date: Re: Converting NSArray of NSString elements into binary?
  • Previous by thread: Re: Converting NSArray of NSString elements into binary?
  • Next by thread: Re: Converting NSArray of NSString elements into binary?
  • Index(es):
    • Date
    • Thread