Re: NSOpenPanel problem
Re: NSOpenPanel problem
- Subject: Re: NSOpenPanel problem
- From: "Jan E. Schotsman" <email@hidden>
- Date: Tue, 24 Jan 2012 17:50:45 +0100
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 (email@hidden)
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:
This email sent to email@hidden