Re: 0 for 2
Re: 0 for 2
- Subject: Re: 0 for 2
- From: "John C. Welch" <email@hidden>
- Date: Thu, 21 Jan 2010 14:47:02 -0500
- Thread-topic: 0 for 2
On 1/21/10 2:18 PM, "Jon Pugh" <email@hidden> wrote:
> Learning how to read this documentation is the primary task for learning
> Cocoa, Cocoa Touch and AppleScriptObjC, as all of them make use of these Cocoa
> method calls. In addition to providing you with methods you can implement to
> be called, there are also objects and methods for you to call in order to
> perform tasks. It's a very rich class library, which is stunningly accessible
> to AppleScript.
Indeed. As I start to wrap my head around cocoa more, AppleScriptObjC is
impressing my socks off. I think the advantage to the syntactical changes,
at least for me, is that I can't think of it in terms of anything else. I
have to think of it as what it is: AppleScriptObjC.
However, the integration with generic AppleScript is not only handy, but
pretty easy to use, like this line for updating a time field in the UI of
the application I'm working on:
theTime's setStringValue_((time string of (current date)))
I could have used NSDate and/or NSDateComponents but I didn't have to,
because unlike what you might think at first blush, Apple really didn't
throw the baby out with the bathwater. They just gave it fresh water.
Personally, I've been pushing myself to do things "the Cocoa way" in the
application I'm working on, but that's not because I have to. Rather, by
doing this, I can climb the learning curve much faster, so I can make better
decisions in the future about which methods to use.
It also helps that my first conversion is actually a FaceSpan application
that has a lot going on, that was working as designed so that I have a
functional template to work from, and I know exactly what's supposed to
happen.
--
"Any nation's attempt to dictate to other nations their form of government
is indefensible."
Dwight D. Eisenhower, April 16, 1953
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden
References: | |
| >Re: 0 for 2 (From: Jon Pugh <email@hidden>) |