[ANN] New AppleScript Studio article
[ANN] New AppleScript Studio article
- Subject: [ANN] New AppleScript Studio article
- From: Bill Cheeseman <email@hidden>
- Date: Thu, 18 Apr 2002 14:13:10 -0400
The second of three articles I've written about AppleScript Studio has
appeared in the March 2002 issue of MacTech Magazine, just now arriving in
mailboxes.
This installment contains the code and descriptions for an AppleScript-based
preferences system for an AppleScript Studio application. That is, it uses
the AppleScript Read/Write commands to maintain a separate preferences file.
The second installment will contain code and descriptions for reading and
writing data files the Cocoa way. One of the points of the first installment
is to show Cocoa developers how AppleScript can be used to save data in
files; one of the points of the second installment will be to show
AppleScripters how Cocoa can be used to save data in files.
I think the most interesting aspect of the article is the techniques used to
load groups of AppleScript handlers in multiple script files as script
objects, emulating the Model-View-Controller structure that is typical of
Cocoa applications.
Some minor corrections to the text of the article to take account of
AppleScript Studio 1.1 did not make it into the article as published. But
the code was not changed, anyway, and should run as is in 1.0 and 1.1.
The following concluding paragraph should have been included in the article:
"In addition, we will use the next installment to fix a bug in our
application. Did you find the bug while you were testing Doyle a moment ago?
No? Well, try this: Launch Doyle, choose Doyle -> Preferences, and then
choose Doyle -> Preferences again. The screen looks right, but try dragging
the Preferences window to a new location. Oh, no! -- there are two
Preferences windows. A quick look at our code reveals the reason: We reload
the Preferences.nib file every time the user chooses the Preferences
command. Your challenge is to fix this bug with as little new code as
possible, before we reveal our bug fix in the next installment."
--
Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
http://www.quecheesoftware.com
The AppleScript Sourcebook -
http://www.AppleScriptSourcebook.com
Vermont Recipes -
http://www.stepwise.com/Articles/VermontRecipes
Croquet Club of Vermont -
http://members.valley.net/croquetvermont
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.