On Jul 17, 2009, at 4:21 AM, Andy Bell wrote:

Hi All,

How can I convert EventRef to NSEvent on 10.4? I am only interested in getting the equivalent value for [NSEvent characters] from the EventRef.

If you have a kEventTextInputUnicodeForKeyEvent event, then the Unicode character data is already in the event; use GetEventParameter (HIToolbox/CarbonEventsCore.h) with kEventParamTextInputSendText.

If you have some other type of event, then the character data simply isn't there.

-eric

_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to