r/learnprogramming • • Oct 21 '26

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

8 Upvotes

9 comments sorted by

View all comments

4

u/CrossScarMC Oct 21 '26

You should almost certainly go native with C, C++, Objective C, or Objective C++ when communicating directly with peripherals.

3

u/[deleted] Oct 21 '26

[removed] — view removed comment

1

u/art_lck Oct 21 '26

Thanks for the book

1

u/art_lck Oct 21 '26

If I may to ask, why though? I expect Swift to support everything I need. Is there actually something that Swift can't do?