Hello Everyone
This is my first post in the Apple Developer Forums.
I am a long time Windows developer – using C++ and the Win32 API (and Direct2D, Direct3D).
I want to start developing a desktop app for Mac (both for Intel and M1/2 processors).
And I don’t know where to begin… which is why I am posting here.
My criteria:
-
I want to use C++ as much as possible. This is my strength and I have existing Windows apps that I would like to try to port. I realise that I might have to use some Objective C or Swift – but I hope this will be minimal (or that I can call into it from C++). Is it even possible to mainly use C++ in macOS?
-
I don’t want to use a third-party GUI framework if possible. I prefer to use a macOS GUI API (if there is one). Is this possible?
-
I am very familiar with Visual Studio., but I am happy to use XCode. Is this the best choice?
I realise that I am at the start of a very long learning curve. I hope that my (many years of) experience with Windows GUI programming will at least help me a little.
Thank you in advance for any help!
Best regards
AW
I haven't ever written any C++ on the Mac, but I think you can write it in Xcode.
To be honest, though you might have strengths in Windows GUI programming, mainly just the ideas of how GUIs work on an OS is useful. You should prepare yourself for learning how things work on the Mac. We have UIKit, but that's Objective-C and Swift.
You might find it handy to start writing stuff in Objective-C or Swift and see how that works out for you. Swift is going to be supported going forward (and Objective-C for a good long time yet).
Check out some of the sample code projects on Apple's website (look for the WWDC 2022 stuff). You can gain a lot of knowledge by trying their stuff out and changing things to see how things work. Good luck.