Using ASOC in a Cocoa app?

Hi guys.

I’m very new to both ASOC and Cocoa but I have some experience with AppleScript. So…

I’m writing an application that integrates with Apple’s Aperture and I’m not sure which way to take. I started out writing it as an ASOC application, but the missing compiler warnings and coercion errors made me look for other ways.

Then I discovered Scripting Bridge and rewrote the application in pure Cocoa. Now I’m stuck trying to create some SBObjects that just won’t bend to my will.

My question is - is it possible to write most of the app in Cocoa but still use classes / methods written in ASOC? I found a few somewhat related posts here, but I’m not sure how much of it still applies.

Thanks,
Morten

Sure. My AppleScriptObjC Explorer is an example of just such an app.

Hi Shane,

I just realized I was too much in a hurry to finish reading your ASOC ebook. Truth is, I wouldn’t even have gotten started without it. It probably has the answers I need. And I’ll definitely check out ASOC explorer.
Thanks again,

Morten

I have built a few apps that are mostly Cocoa but also include ASOC classes. In one example, the application gets info from a database query and displays it to the user. The user can edit any of the text fields, and then they press a button that builds an InDesign document (the ASOC part) that includes the text from some of those fields. In the process, the ASOC queries the app’s main Delegate for some information from an NSArray.
So yeah there are lots of possibilities to accomplish what you need.