• 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: "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


  • Follow-Ups:
    • Re: Converting NSArray of NSString elements into binary?
      • From: Scott F Bayes <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>)

  • Prev by Date: Cocoaheads Lake Forest (92630) meets Tuesday, 10/2 at 10pm
  • 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