Universal Binary Problem (Carbon Issue?)
Universal Binary Problem (Carbon Issue?)
- Subject: Universal Binary Problem (Carbon Issue?)
- From: Aram Kudurshian <email@hidden>
- Date: Fri, 20 Jan 2006 14:00:25 -0500
Hey everyone,
Since it's time to jump on the universal binary bandwagon (I might
even be late with this :), I decided to go ahead and see if I could
compile my utility for Intel. I've run into a problem that I just
don't know how to solve...
4 Errors appear for the following method; each on the lines with the
binary &. Xcode asserts the following - error: invalid operands to
binary & . Why does this work for a PPC target but not Intel? Is it
because I'm accessing a Carbon data structure?
Any tips, substitutions, advice, or just musings would be of great help.
- (BOOL) allKeysPressed:(int)inMask {
KeyMap theKeys;
GetKeys(theKeys);
return (((theKeys[1] & 0x0008) ? 1 : 0) == ((inMask &
kHPControlModifierKey) ? 1 : 0)) &&
(((theKeys[1] & 0x0004) ? 1 : 0) == ((inMask &
kHPOptionModifierKey ) ? 1 : 0)) &&
(((theKeys[1] & 0x0001) ? 1 : 0) == ((inMask &
kHPShiftModifierKey ) ? 1 : 0)) &&
(((theKeys[1] & 0x8000) ? 1 : 0) == ((inMask &
kHPCommandModifierKey) ? 1 : 0));
}
Thanks,
Aram
--
Aram Kudurshian
www.kudurshian.net
Hamilton College
198 College Hill Road
Clinton, NY 13323
_______________________________________________
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