by bluedino · 4y ago · 0 comments
I bought an old copy of the Hillegass book Cocoa Programming for Mac OS X, but I'm guessing most people learned from Apple developer docs that I never saw (or guess didn't know how to find back then)
As an aside, I don't miss the old programming books where each chapter just showed you how to use some GUI elements and they never got around to showing patterns on how you would actually create a usable application.
It was a good fit since the physicists and mathematicians wrote their experimental stuff in Matlab and the engineers and us computer scientists wrote the actual production code in C compiled for the embedded hardware in the avionics. Cocoa provided a good bridging platform for tool sets between the two camps. (Later, python and its robust set of science and math libraries became the tool of choice in this role as Python expertise became more general on our team)
Long story short, I learned by suffering through the interface, especially the fairly esoteric Interface Builder.
And then in 2008 I went to a bootcamp hosted by the former-NeXT guy that had founded Big Nerd Ranch, Aaron Hillegas. He made it just click, so yeah, maybe but did take a NeXT programmer to wrap your ahead around it, ha.
[0] https://corecursive.com/cocoa-culture-with-hansen-hsu/#big-n...
The major difference between Apple docs, and Javadocs at the time (Java was the actual language I used to program in), was that Javadocs was basically API references, whereas Apple docs had API references but they also had guides that went into the why, and the best practices, and even occasionally alternatives for edge cases, etc.
And the fact that it was available offline as an optional download with XCode was a massive bonus at a time when ubiquitous Wifi and internet was not a thing.
It was a real surprise to me, after having stepped away from any sort of Apple development for a few years that Apple's docs were considered bad.
I remember reading a brand new O’Reilly book called “Building Cocoa Applications”. It was written by two ex-NeXT devs and was quite helpful in understanding the system.
Apple’s own documentation and sample code was good back then. The API was much smaller, so I read the reference for every Cocoa class.
Apple provided a fully functional demo app called Sketch which showed important architectural patterns like undo/redo. When developing my first Cocoa app, I’d basically go see how Sketch.app implemented something and copied the approach.
(Incidentally, I’m convinced that the well-known Sketch drawing app is basically a case of somebody looking at Apple’s Sketch.app sample code and thinking “couldn’t we just sell this.”)
Some years earlier I had tried to learn Win32. It’s hard to overstate just how fun and easy and powerful Cocoa felt in comparison.
For reference: https://developer.apple.com/library/archive/samplecode/Sketc...
This was a tad difficult to find due to the aforementioned commercial Mac app called Sketch.
It was kinda rough, and I didn’t get to the point to where I could build useful things until the late 2000s and early 2010s… just in time to dovetail into iOS development (which I’ve now been doing as my job for the better part of a decade).
The cornucopia of free resources that are available to new learners today is a ridiculously stark contrast to how it was back then.
But it’s a profession, selling shrinkwapped desktop applications or the modern equivalent takes a lot.
Back then probably a significant portion. Today, I guess most of those former Next greybeards have retired or moved to other gigs.
there was some transition time when Apple published Carbon interfaces to Mac OS 9 devs (like me), stating that they were "transitional". Quite skeptical, I used them to rebuild some tools and apps in CodeWarrior. Within a short time, more updates had less Carbon, and the news came out that Codewarrior was locked out of OSX -- no deal. It was obvious that the Mac OS 9 interfaces were for chumps, and who wants to be a chump. It was true, and things changed.