Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6530357
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T09:44:44+00:00 2026-05-25T09:44:44+00:00

Is there a cocoa / carbon equivalent to the VkKeyScan and ToUnicode functions present

  • 0

Is there a cocoa / carbon equivalent to the VkKeyScan and ToUnicode functions present on windows for translating between virtual scan codes and a unicode string? I would also like to perform this conversion vice versa (going from a char to a scan code).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T09:44:45+00:00Added an answer on May 25, 2026 at 9:44 am

    I’m not sure there is, sadly. CGEvent and NSEvent (which aren’t toll-free bridged, but NSEvent can convert back and forth) are the standard containers for events including key presses and as a result can convert from device-dependent scan codes to unicode string sequences but there seems to be no way to go in the other direction — from a unicode character to the required sequence of device-dependent key presses.

    There’s a brief comment underneath CGEventCreateKeyboardEvent that:

    All keystrokes needed to generate a character must be entered,
    including modifier keys. For example, to produce a ‘Z’, the SHIFT key
    must be down, the ‘z’ key must go down, and then the SHIFT and ‘z’ key
    must be released:

    But the sequence shown then has hardcoded and unexplained constants for the shift and z keys.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there any Carbon/Cocoa/C API available on Macs that I can use to enumerate
There's a diagram depicting the difference between traditional MVC and Cocoa MVC here: Cocoa
Is there an equivalent in dbg/cocoa/apple word for the Microsoft public symbol server and
I find it hard to find some working examples of Cocoa/Carbon framework functions, whereas
Is there an equivalent to [UIViewController viewDidAppear:] in Cocoa? i.e., is there a way
There are many Cocoa methods that require an NSError object as a parameter to
Is there a way in Cocoa that is currently considered best practice for creating
Is there a way to use a Cocoa IBOutlet in Python? Or do I
Is there an available API or functionality in cocoa where i can communicate with
Is there a way in objective-c/Cocoa to alloc an object when the class name

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.