• 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
Universal Binary Problem (Carbon Issue?)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Universal Binary Problem (Carbon Issue?)
      • From: "Sean McBride" <email@hidden>
    • Re: Universal Binary Problem (Carbon Issue?)
      • From: Nick Zitzmann <email@hidden>
  • Prev by Date: appDidFinishLaunching and NSTask
  • Next by Date: Custom View inside NSToolbar
  • Previous by thread: Re: appDidFinishLaunching and NSTask
  • Next by thread: Re: Universal Binary Problem (Carbon Issue?)
  • Index(es):
    • Date
    • Thread