The official subreddit for Style Savvy players. Style Savvy, known as Nintendo presents: Style Boutique in the PAL region and as Wagamama Fashion: Girls Mode in Japan, is a fashion video game developed by Syn Sophia and published by Nintendo. Please make sure to follow all subreddit rules. Check the Fashion Boutique for new arrivals or win materials by completing tasks to create your own designs. Collect fabulous outfits of various kind to fill your closet, and you can clean out the closet by swapping the excess for an amazing new one. Explore the world of Mac. Check out MacBook Pro, MacBook Air, iMac, Mac mini and more. Visit the Apple site to learn, buy and get support.
I've long known about Apple's general System Status page, which provides a dashboard showing the state of most of Apple's consumer-focused services:
Until yesterday's 'why can't I launch any apps?' outage, however, I'd never known that they also have the same type of status page for developer-focused services:
But this page is useful to more than just developers (and it doesn't require a login to view). Had I known about it earlier, yesterday it would've shown that they were having a problem with the Developer ID Notary Service, which is why apps wouldn't launch.
In typical Apple understatement fashion, they've posted the resolved status for that service today:
'Some users were affected' and 'Users may have experienced issues with the service' certainly make it sound less painful than what it was, i.e. 'A ton of users were unable to use their Macs' and 'Mac users could not launch their apps for over two hours.' Somehow Apple needs to come up with a better failure mode for the service, as the results yesterday were unacceptable.
Note: If it happens again, simply edit the /etc/hosts file as root, and add this as the last line:
0.0.0.0 ocsp.apple.com
That will prevent your Mac from trying to contact the validation server at all. Note: This seems to break the App Store app, but it let me keep working, which was more important at the time.
Hi again, readers of NSBlog! This is my first guest post of 2012, and also my first one writing the introduction myself. I plan to do posts every two weeks, alternating with Mike's to bring back the once-a-week format. This week, at my own suggestion, I'm doing a historical piece on the original programming environment for Macs: The Mac Toolbox. Oops loops (samshine games) mac os. Time for a trip down memory lane!
Back In My Day, We Tracked Mouse Drags 512 Pixels Through One-Bit Color!
When the very first Macintosh computers were released, they didn't have much of anything we take for granted in modern times. For example:
What you had was an 8 Mhz Motorola 68000 CPU, 128KB of RAM (that's kilobytes, as in half the size of the raw rendered HTML for this article!) a 512x384 black & white screen, one 400K 3.5' floppy disk drive, a keyboard with no arrow keys connected with a RJ11 (telephone) plug, a one-button mouse plugged into a DB-9 connector, and if you had paid the extra money or had one left over from your Apple ][, a rather noisy dot-matrix printer with a proprietary DE-9 connector. The machine was not upgradable in any meaningful fashion.
While many of these limitations, ridiculous to the point of absurdity by modern standards, were eventually lifted, its legacy carried forward in one very visible way right up until the introduction of the Carbon API with the development Mac OS X: The Mac Toolbox, the original API for programming with the Macintosh computer.
What Is This Toolbox?
The Mac Toolbox was a comprehensive set of APIs for interacting with the Macintosh hardware and operating system to read input, process data, and output results (the fundamental nature of any program). It was originally written in a mix of MC68000 assembly language and Lisa Pascal. To those used to today's Objective-C programming in Cocoa, it can look like quite a lot of gibberish.
In particular, even in its most modern incarnation before Carbon, the Toolbox did not do things that many Cocoa programmers have never even considered handling manually. To create an application which has a single window, containing a simple text field with a scroll bar, and functional File and Edit commands is the work of almost zero code in modern Cocoa. The equivelant program using the Mac Toolbox is a bit more complicated.
We start with the resource file for the program. A resource file is a document containing an organized database of resources, various formatted bits of data in a known format that the OS can load on command. Nib files are partially an evolution of resource files, but resources contained considerably more than UI elements, and were considerably harder to manage than nibs. Far and away, the most popular program for editing resources was Apple's free ResEdit tool. To save time and space, I won't walk through the fairly simple process of setting up the resources the program will use; here's the completed resources file:
That's three MENU
resources for the Apple, File, and Edit menus, an MBAR
resource listing the three menus and their resource IDs, and a WIND
resource with the basic template for the window. There's also an ALRT
/DITL
pair for the about box.
Put The Tools In The Box And Rattle Them Around
Now for some code. Please be aware that to keep things from getitng wildly out of hand with complications, I've ignored error checking. This is a Bad Idea at the best of times; with the Toolbox it could often be all but suicidal. It's 'okay' for sample code, but you'd never try it in reality.
No, I mean it. In Cocoa you can often get away with ignoring errors, though you shouldn't. Back in Toolbox days, you couldn't get away with it. Period.
As you can see, I've left a lot of the 'meat', the routines that actually do anything, unimplemented. There's two reasons for that: First, it shows just how much raw boilerplate code one had to write in Toolbox-land; a lot of this was unnecessary even with Carbon. In Cocoa only a few lines of it translate to anything other than empty space.
The other reason is I just don't remember enough Toolbox anymore to show the implementation of those routines! There are at least three 'major' flavors of Classic code: The old System 6 routines, the newer System 7 routines, and the 'appearance-aware' routines that came with OS 8.5. https://for-ayymv-mobile-android-telecom-bonus-casinos.peatix.com. Keeping track of which functions belong to which era is problematic enough without realizing that with the amount of manual lifting that has to be done, the 5-line Cocoa app becomes a 2000-line Classic program.
Conclusion
All in all, I feel I have to apologize for the terseness of this article. I'd hoped to explore the Toolbox in more depth, but I don't have the time to invest in re-learning a system that, in all likelihood, I will never use again. The Toolbox was a brilliant API for its time, and its worst fault was that it suffered from what all good things do: Age.
The Toolbox is gone, but not forgotten. Classic Mac OS, I salute you. Thanks for reading, everyone; I'll be making a followup post in the next few days looking at the code in detail, and I'll be back in two weeks with another Friday Q&A. Stay tuned for Mike's article next week!
diskEvt
and inSysWindow
stuff right up until Carbon Events came along.Add your thoughts, post a comment:
Spam and off-topic posts will be deleted without notice. Culprits may be publicly humiliated at my sole discretion.
JavaScript is required to submit comments due to anti-spam measures. Please enable JavaScript and reload the page.