Re: Trying blocks
Re: Trying blocks
- Subject: Re: Trying blocks
- From: Jens Alfke <email@hidden>
- Date: Fri, 30 Oct 2009 08:28:54 -0700
On Oct 30, 2009, at 3:08 AM, Bill Cheeseman wrote:
As far as I have been able to determine, you cannot include blocks-
based code in a binary that runs on Leopard or older as well as on
Snow Leopard. Testing for Leopard and older and branching around the
blocks code does not solve the problem, because the linker still
expects to see the blocks symbols at load time and they aren't there
on Leopard and older.
Is there a way that you could mark the block-related symbols as weak
imports at link-time?
Also, there is an open-source implementation of blocks for 10.5,
including a compatible copy of the Clang compiler. I don't recall the
name/URL of the package but it shouldn't be hard to find with some
searching.
—Jens_______________________________________________
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