Re: NSInteger compare - Help Needed
Re: NSInteger compare - Help Needed
- Subject: Re: NSInteger compare - Help Needed
- From: Greg Guerin <email@hidden>
- Date: Sat, 17 Jul 2010 13:07:51 -0700
Steve Wetzel wrote:
if ([sender tag] << 10) {
The << operator is LEFT-SHIFT.
The < operator is LESS-THAN.
If you want to understand what your code is doing, think about what
happens when the numbers 0-9 are left-shifted by 10 bits.
-- GG
_______________________________________________
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