Re: Declaring Properties (inside or outside of script <appName>AppDelegate)
Re: Declaring Properties (inside or outside of script <appName>AppDelegate)
- Subject: Re: Declaring Properties (inside or outside of script <appName>AppDelegate)
- From: Shane Stanley <email@hidden>
- Date: Fri, 26 Mar 2010 09:58:41 +1100
- Thread-topic: Declaring Properties (inside or outside of script <appName>AppDelegate)
The only real advantage I can see to declaring properties that refer to
classes outside the script object is that it lets you put multiple script
objects in one file, something I'm not sure many people will want to do. But
the choice may well have been colored by the release notes, which showed it
that way.
FWIW, I find myself doing neither, and just using things like "current
application's NSString" in the code. It's sometimes a little more typing
(but not much; a script inserts the "current application's " for me), and it
makes the code a bit more verbose, but it makes it much easier to
cut-and-paste slabs of code between scripts without having to worry about
whether I've missed some property declaration.
Just don't try to use the enumeration property method in the release notes
-- that won't compile.
--
Shane Stanley <email@hidden>
AppleScript Pro, April 2010, Florida <http://www.applescriptpro.com>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
applescriptobjc-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden