3 ms·
It's worth it to install the developer tools. A few observations: This is running a mix of older NextStep apps and newer OpenStep apps. For example, there ar
by thought_alarm 5y ago
It's worth it to install the developer tools. A few observations:
This is running a mix of older NextStep apps and newer OpenStep apps. For example, there are two text editors: Edit.app, and TextEdit.app. Edit.app is the original NextStep editor circa 1989, and TextEdit is the OpenStep reimplementation circa 1995. You can tell if it's a newer OpenStep app because it draws Windows-style focus rings around the buttons and controls.
OpenStep became Cocoa, so OpenStep code looks very familiar to anyone who's done Objective-C development for Mac or iOS. NextStep code, on the other hand, looks very foreign to modern eyes (There are no NS classes. It's basically just plain C and AppKit classes like Window, Button, View, etc.)
The TextEdit source code is included in the developer examples folder, written by Ali Ozer. Apple would continue to include the latest TextEdit source code with Xcode up until about OS X 10.9, if I remember.
This version of TextEdit is cross platform, so there's plenty of #ifdef WIN32 code.
There's no NSDocumentController, so there's boilerplate in the app controller, like checking if documents need to be saved before quitting, that a modern implementation would no longer need to worry about.
If you're old enough to remember using Xcode 3, prior to the Xcode 4 redesign, you probably found that IDE quite strange and difficult to master (I miss Xcode 3, myself). Xcode 3 was a descendent of the NeXT Project Builder circa 1996. Playing around with the older, and much simpler, Project Builder makes it easier to understand why Xcode 3 worked the way it did.