ASOC, iCloud and Garbage Collection

I read in the docs that iCloud doesn’t support garbage collection, and that Apple recommends using Automatic Reference Counting (ARC). Also, in the “Transitioning To ARC Release Notes”, there is the following question and answer:

This brings up the question about ASOC. Is GC mandatory for ASOC apps, or can you use ARC? Looking at the NSFileCoordinator reference, it’s clear that you would have to use Objective-C to use iCloud (because all the methods use blocks), but is it possible to have mixed ASOC/Obj-C apps that use iCloud, or will the memory management issues make that impossible?

Ric

It’s probably worth posting this question on Apple’s official mailing list, in the hope of extracting an official response.

My understanding, though, is that for the time being, ASObjC uses garbage collection, and that’s it.

Do you mean the applescriptobjc-dev mailing list, or is there another one that would be more appropriate?

Ric

applescriptobjc-dev

Hello Shane and Ric,

It has been a while since this post, Mountain Lion is out.

Would you guys please comment on this post again?

What do you think?

An ASOC application can use iCloud?

No. One that uses ASObjC and some Objective-C could. It would have to be sandboxed to get in the app store, and it would have to be 10.8-only to support ARC in ASObjC.