• 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: How useful are bit operators?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How useful are bit operators?


  • Subject: Re: How useful are bit operators?
  • From: "Jim Thomason" <email@hidden>
  • Date: Tue, 24 Jul 2007 15:27:33 -0500

How useful are those operations in Cocoa programming?

They're extremely useful when you're doing bitwise operations. Try doing a bitshift when all you've got is +dateWithNaturalLanguageString:

Could you give me an example where you actually was forced to use a
bit operation.

"force" may be a bit strong of a term, but I use 'em in the places I
always would've used 'em before. For example, in one of my apps I use
an integer to store a set of data. each bit is in set/not in set. It
was the easiest way to extract my data from the int, and the int was
the simplest most compact storage method. It's all wrapped up inside a
method so I never worry about the details anyway.

-Jim....
_______________________________________________

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: 
 >How useful are bit operators? (From: Bob Ueland <email@hidden>)

  • Prev by Date: How useful are bit operators?
  • Next by Date: Re: How useful are bit operators?
  • Previous by thread: How useful are bit operators?
  • Next by thread: Re: How useful are bit operators?
  • Index(es):
    • Date
    • Thread