• 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: Nick Zitzmann <email@hidden>
  • Date: Mon, 1 Oct 2007 19:05:37 -0600


On Oct 1, 2007, at 5:28 PM, R.L. Grigg wrote:

Is there some method to convert the NSArray of NSString elements into binary byte values?

No.

Or do I have to go through each element and convert each NSString into a NSNumber so I can put it's byteValue into a NSMutableData one by one? Is this the wrong approach?

Using NSNumber is a little extreme; just using -intValue ought to cover things unless you need 64-bit integers.


Nick Zitzmann
<http://www.chronosnet.com/>

_______________________________________________

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: "R.L. Grigg" <email@hidden>
References: 
 >Converting NSArray of NSString elements into binary? (From: "R.L. Grigg" <email@hidden>)

  • Prev by Date: Re: Where are the boundaries of Cocoa and how are the boundaries perceived ?
  • Next by Date: Re: Problems with authorization (error -60002, errAuthorizationInvalidRef)
  • Previous by thread: Converting NSArray of NSString elements into binary?
  • Next by thread: Re: Converting NSArray of NSString elements into binary?
  • Index(es):
    • Date
    • Thread