from Hacker News

Ask HN: Starting with macOS Development?

by srinathkrishna on 6/21/21, 5:34 PM with 2 comments

What's the best way one could start on macOS development today? With the move from Objective-C to Swift, most of the resources I've come across have been less relevant since they are too Obj-C heavy. And most folks who do work on macOS today have been iOS programmers prior. For someone who's starting on this front for the first time, what would be the best way to start on macOS and potentially carry this knowledge over to iOS in the future?

Looking to hear strategies, resources to use etc.

  • by anosidium on 6/22/21, 12:38 AM

    You have three frameworks to choose from.

      1. AppKit (Cocoa)
      2. Catalyst
      3. SwiftUI
    
    SwiftUI is a unified cross-platform framework so the knowledge is universal across the platforms except for the platform idioms.

    Cocoa is exclusively for the Mac whereas UIKit is basically AppKit 2.0. It has the strengths and the improvements of AppKit without the weaknesses.

    Catalyst is basically the opposite. Using UIKit framework but for the Mac.

  • by st3fan on 6/21/21, 9:10 PM

    Swift and SwiftUI. No doubts. This years wwdc had a few Mac specific sessions to get you started.