Re: Struggling with basic AppleScript support
Re: Struggling with basic AppleScript support
- Subject: Re: Struggling with basic AppleScript support
- From: Matt Neuburg <email@hidden>
- Date: Tue, 06 Feb 2007 11:52:09 -0800
- Thread-topic: Struggling with basic AppleScript support
On Tue, 6 Feb 2007 18:17:31 +0100, Dragan Mili? <email@hidden> said:
>I'm definitely getting frustrated with AppleScript and adding support
>for it in a Cocoa application. First, I had a problem with
>"AppleScript Dictionary Caching" gotcha, but now that it's solved I
>really struggle with a very basic support for AppleScript. So, after
>spending the whole day trying to figure out what I was doing wrong, I
>saw no other way further than to ask on this list. I'll try to
>explain as detailed as possible what I did, so I apologise in advance
>to those not liking long posts.
>
>My application is NOT a document based one. Let's suppose its name is
>iPet. The principal class is NSApplication. An application controller
>MyPetController is the delegate of the NSApp. Each pet is represented
>by an instance of class MyPet, which is the subclass of NSObject, and
>has got two attributes: name and species, both of NSString type. All
>pets are recorded in an NSMutableArray pets, which is an instance
>variable of the MyPetController.
There are a lot of tutorials out there, showing how to add scriptability to
a simple setup such as you describe. Do one. Mine is in my book, and is also
available online here:
<http://www.tidbits.com/matt/scriptability/scriptabilityTutorial.html>
m.
--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
<http://www.amazon.com/gp/product/0596102119>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden