• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Trying blocks
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Trying blocks
      • From: Dave DeLong <email@hidden>
References: 
 >Trying blocks (From: Charlie Dickman <email@hidden>)
 >Re: Trying blocks (From: Bill Cheeseman <email@hidden>)

  • Prev by Date: Re: sizeWithAttributes Cutting Off Drop Shadow, Italic Mask?
  • Next by Date: Re: Trying blocks
  • Previous by thread: Re: Trying blocks
  • Next by thread: Re: Trying blocks
  • Index(es):
    • Date
    • Thread