• 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
Size of -[NSEvent type]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Size of -[NSEvent type]


  • Subject: Size of -[NSEvent type]
  • From: Bill Cheeseman <email@hidden>
  • Date: Fri, 30 Nov 2007 07:29:32 -0500
  • Thread-topic: Size of -[NSEvent type]

In Leopard, the -[NSEvent type] method returns a value of type NSEventType.
In the NSEvent.h header, this is declared as NSUInteger, meaning that it
will occupy 32 bits in a 32-bit app or 64 bits in a 64-bit app.

Why is this?

I was under the impression that an event type is always 32 bits.
Consistently with my understanding, the Core Graphics API, in
CGEventTypes.h, defines CGEventType as uint32-t.

I get even more confused when I look at the declarations of event masks. In
NSEvent.h, the event masks aren't assigned a type, but NSAnyEventMask is
declared to be NSUIntegerMax. In Core Graphics, CGEventMask is declared as
uint64_t.

What am I misunderstanding?

--

Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
www.quecheesoftware.com

PreFab Software - www.prefabsoftware.com


_______________________________________________

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

  • Follow-Ups:
    • Re: Size of -[NSEvent type]
      • From: Ali Ozer <email@hidden>
  • Prev by Date: RE: Linked frameworks
  • Next by Date: Re: Dev tools private frameworks.
  • Previous by thread: RE: Linked frameworks
  • Next by thread: Re: Size of -[NSEvent type]
  • Index(es):
    • Date
    • Thread