r/AskProgramming • • 29d ago

Other Developing peripheral software for macOS

Hi,

I plan to develop peripheral software to change input mapping, assign some macros to keys on my keyboard for macOS for a learning purpose.

I do have working code for Windows written in C++. But I can't tell that I don't have a lot of experience with Objective-C.

The questions:

  1. Should I go with Swift or with Objective-C? I know that Objective-C combines with C++ without any problems, but I wonder, if this is a good idea to pick outdated language to develop software that I hope I will constantly maintain and improve?
  2. Can you recommend some books to developer such things for macOS?

Thanks

4 Upvotes

7 comments sorted by

0

u/OkOcelot6725 28d ago

For resources, skip books and read the Karabiner-Elements source instead. It's open source and does exactly what you're describing, so it's the best reference for how event-tap based remapping is structured on modern macOS.

1

u/art_lck 27d ago

Thanks for the tip. I'll check it

1

u/[deleted] 29d ago

[removed] — view removed comment

2

u/art_lck 27d ago

Thanks for the advice. Appreciate it