Size of -[NSEvent type]
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