Swift Dev Journal’s Intro to Cocoa
Learning to Write Mac Apps in Swift is Excruciatingly Painful
If you’ve tried learning Cocoa programming to develop Mac apps, you probably have encountered frustration. You heard great things about Swift so you look at Apple’s documentation for a guide on writing a Mac app in Swift. Then you learn Apple hasn’t updated their Mac documentation in 10 years. Their guides are deprecated and the examples are in Objective-C. You can find class references in Swift, but when you’re starting out, you need more help than class references.
You search online for tutorials and articles on Mac programming and discover things aren’t much different than Apple’s documentation. The tutorials are old and the code is written in Objective-C. You can find lots of tutorials on iOS programming that use Swift but they don’t apply to the Mac. If you want to write Mac apps in Swift, you’re left to fend for yourself or ask questions on Stack Overflow and hope someone answers.
Learn How to Write Modern Mac Apps
To help introduce people to Mac development, I’m writing Swift Dev Journal’s Intro to Cocoa. In the book you’ll learn Mac development by making a complete Mac app from scratch using Swift and storyboards. Some of the Mac programming concepts you’ll learn as you make the app include:
- View controllers
- View-based table views
- Text views
- Menus
- Notifications
- Saving data
- Undo
- Timers
After finishing Swift Dev Journal’s Intro to Cocoa, you’ll be ready to write your own Mac apps and tackle Apple’s class references.
I wrote the code in Swift 5 so the code is up to date, running on Xcode 10 and above.
When you buy the book, you get PDF and EPUB versions. The code listings are easier to read in the PDF version. There is no copy protection or DRM. You can read the PDF version on a Mac and the EPUB version on an iPad.