I’ve written a couple of Objective-C files that make life a bit easier for AppleScriptObjC coders. There is a class that you can use as a superclass, and it lets you easily do things like convert between AS dates and NSDates, convert aliases/files to NSURLs, convert NSURLs to HFS paths, make AS dates from strings, and a couple of other things. There are also categories that let you get and set AS dates in date pickers, and use HFS paths with path controls.
The files are in a test project you can download from here:
The class is a subclass of NSObject, and AppleScriptObjC relies on the scripting bridge between AppleScript and Objective-C. When you come to a point on a river where there’s no bridge, sometimes you can still get across by fording the river…
I have been learning plain vanilla Objective-C but this will help simplify a few things with my main main app which I converted to ASOC a few months back.
And now I know what NSMakeCollectable is, not to mention UCConvertLongDateTimeToCFAbsoluteTime!
And thanks for being such a foundation for this list and ASOC’s realization. I think we would be in the dark ages without you (and without the famous apple project 'examples…)
Downloaded the Myriad Helpers for Mavericks and added them to my project. I’m getting deprecations warnings for some code in NSOpenSave+MyriadHelpers, NSPathControl+MyriadHelpers, and ObjectWithFords.