4 ms·
Several years ago I wrote a blog post "Resources for learning Objective-C and AppKit": https://lapcatsoftware.com/articles/learning.html https://lapcatsoftware.
by lapcat 2y ago
Several years ago I wrote a blog post "Resources for learning Objective-C and AppKit": https://lapcatsoftware.com/articles/learning.html https://lapcatsoftware.com/articles/learning.html
There are probably a lot of resources and tutorials out there for learning the UIKit-Swift combination. For AppKit, on the other hand, most of the best resources are "old", which means they were written before Swift was introduced. Thus, if you want to learn AppKit, you probably want to learn Objective-C too.
You can of course write AppKit-Swift code, and many AppKit developers do. However, these AppKit developers learned AppKit-ObjC first and only later switched to Swift. I'm not aware of a lot of AppKit-Swift learning resources.
- jitl 2y agoI’ve been learning AppKit-Swift to build my own screenshot annotation app, mostly using StackOverflow and reading Apple’s older docs which are all ObjC. There’s very few things that don’t translate 1:1 from ObjC to Swift with the same API names. As long as you know what a message-send function call looks like in ObjC, you can read such examples and apply them to Swift. ObjC: [[FooClass alloc] initWithFoo: foo and bar: bar] Swift: FooClass(initWithFoo: foo and bar: bar)
- ChrisMarshallNY 2y ago> Swift: FooClass(initWithFoo: foo and bar: bar) Often looks like: FooClass(foo: foo, and: bar) These days.