• 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: Deprecated APIs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Deprecated APIs


  • Subject: Re: Deprecated APIs
  • From: Steve Christensen <email@hidden>
  • Date: Wed, 24 Feb 2010 11:36:56 -0800

On Feb 24, 2010, at 11:04 AM, Bill Bumgarner wrote:

On Feb 23, 2010, at 8:57 PM, Steve Christensen wrote:

That code uses blocks, though, which implies that it will be compiled using a later version of Objective-C. Will that code really run on older versions of OS X?

The compile-time conditional assumes that you're building against the 10.6 SDK (or later). Obviously if you're going to support both cases, you'll need to use a compiler configuration that is compatible with all the OS versions you plan to support.

There are symbols *sometimes* emitted by compilation of blocks that won't be available on prior releases of Mac OS X and, thus, will cause a dyld error on launch on those platforms.


Be careful.

Is this the case even if you're weak-linking against 10.6, i.e., you're setting the deployment target to 10.4? And is this a blocks- specific issue? I don't recall ever having problems with other cases when I wanted to call a newer API method conditional on the OS version.


steve

_______________________________________________

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: Deprecated APIs
      • From: Greg Parker <email@hidden>
    • Re: Deprecated APIs
      • From: Jean-Daniel Dupas <email@hidden>
References: 
 >Deprecated APIs (From: charisse napeÿfffff1as <email@hidden>)
 >Re: Deprecated APIs (From: Steve Christensen <email@hidden>)
 >Re: Deprecated APIs (From: Charles Srstka <email@hidden>)
 >Re: Deprecated APIs (From: Steve Christensen <email@hidden>)
 >Re: Deprecated APIs (From: Bill Bumgarner <email@hidden>)

  • Prev by Date: Re: Odd NSString behavior
  • Next by Date: Re: Odd NSString behavior
  • Previous by thread: Re: Deprecated APIs
  • Next by thread: Re: Deprecated APIs
  • Index(es):
    • Date
    • Thread