• 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
help with intelizing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

help with intelizing


  • Subject: help with intelizing
  • From: Benjámin Salánki <email@hidden>
  • Date: Wed, 2 Aug 2006 19:43:18 +0200

Hi dear list.

I have a simple function:

static BOOL AnyKeyDown()
{
	const   UInt32 kCapsLockBit = 0x02L;
	KeyMap  keys;
	GetKeys(keys);
	return keys[0] || (keys[1] & ~kCapsLockBit) || keys[2] || keys[3];
}

now this works great when I compile for PPC, but when I try to compile for Intel I get the following errors:

error: used struct type value where scalar is required
error: invalid operands to binary &

could anyone help me get this to work on Intel as well?

thanks so much,
ben

_______________________________________________
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: help with intelizing
      • From: John Stiles <email@hidden>
  • Prev by Date: Re: ODBC query NSTableView
  • Next by Date: Re: help with intelizing
  • Previous by thread: Re: (Newbie) Multiple views in a Core Data app
  • Next by thread: Re: help with intelizing
  • Index(es):
    • Date
    • Thread