• 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: bit/byte processing in cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bit/byte processing in cocoa


  • Subject: Re: bit/byte processing in cocoa
  • From: Bob Ippolito <email@hidden>
  • Date: Thu, 13 Jan 2005 11:58:37 -0500


On Jan 13, 2005, at 4:28, Shawn Erickson wrote:


On Jan 12, 2005, at 10:07 PM, Jon wrote:

I was wondering how to deal with bits/bytes in cocoa. How could I, say AND a char with another? Or XOR it, or use other things like shr/shl etc? Sorry for the newbie question, but I can't figure it out.

How you do it in C? Objective-C is a super set of C so anything you can do in C you can do in Objective-C.


(of course I am assuming you the C programming language)

I personally have no idea what "shr" or "shl" is nor much idea exactly what you are trying to do and how you are having problems with it (what of Cocoa are you using, etc.) so providing more information would be helpful.

shr and shl are (x86?) assembly mnemonics for shifting bits right and left respectively.


But yes, do what Shawn says and use regular 'ol C syntax.

-bob

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: bit/byte processing in cocoa
      • From: Shawn Erickson <email@hidden>
References: 
 >bit/byte processing in cocoa (From: Jon <email@hidden>)
 >Re: bit/byte processing in cocoa (From: Shawn Erickson <email@hidden>)

  • Prev by Date: Re: Detect Safari Version
  • Next by Date: Re: bit/byte processing in cocoa
  • Previous by thread: Re: bit/byte processing in cocoa
  • Next by thread: Re: bit/byte processing in cocoa
  • Index(es):
    • Date
    • Thread