Re: The best way to call Cocoa methods not implemented in previous versions of the SDK?
Re: The best way to call Cocoa methods not implemented in previous versions of the SDK?
- Subject: Re: The best way to call Cocoa methods not implemented in previous versions of the SDK?
- From: Shane Stanley <email@hidden>
- Date: Wed, 07 Sep 2011 09:50:08 +1000
On Sep 7, 2011, at 9:31 AM, Chris Hanson wrote:
>
> You should set your Base SDK to the most recent OS whose features you are going to use (in this case 10.7) and set your Deployment Target to the least recent OS you want to run on (in this case 10.6).
I have a GC app written under 10.6 (which it requires as a minimum because it uses a small amount of AppleScriptObjC). I have updated it to support versioning and the find bar when run under 10.7. When I set the deployment target to 10.7 and run the result under 10.6, I get regular "malloc: reference count underflow for 0x200796140, break on auto_refcount_underflow_error to debug" errors. They don't happen under 10.7, and they don't happen under 10.6 if I set a deployment target of 10.6.
And of course I have no way to "break on auto_refcount_underflow_error to debug", because the error doesn't happen under 10.7, and I can't set a deployment target of 10.7 when running under 10.6.
So for now, the easy way out is to keep the deployment target at 10.6. But I'd be interested in any other thoughts/suggestions.
--
Shane Stanley <email@hidden>
'AppleScriptObjC Explored' <www.macosxautomation.com/applescript/apps/>
_______________________________________________
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