On Jan 23, 2012, at 11:15 PM, Ken Thomases wrote:

I don't know about complaints from the compiler, but I'm certain that ARC can't be used with code deployed to Leopard. ARC requires support from the runtime libraries and that support was never released for Leopard.

Thanks for your help. I didn't realize the runtime needs to support ARC too. Looks like I have to rethink my strategy. I am converting my apps to Cocoa and I intended to keep supporting Leopard, but if this means I cannot use ARC or have to use two different memory management schemes then I'll probably go for Lion only.

I can't imagine that allocating a heap buffer for a serialized string is the best way to get data into the handler. If you are using ARC (which I believe you can't), then try CFBridgingRetain() balanced later with a CFRelease() or CFBridgingRelease().

Ah, bridging to CoreFoundation is indeed much simpler.

Jan E.

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to