• 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
cross development, missing methods
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

cross development, missing methods


  • Subject: cross development, missing methods
  • From: Robert Nikander <email@hidden>
  • Date: Tue, 7 Oct 2008 12:19:10 -0400

Hi,

In short, my question is: when cross developing for multiple OS versions, how do people deal with Objective-C methods that exist in only some of the versions? Do you have multiple targets compiling against different SDKs?

Details...

I'm on 10.5 with Xcode 3.1 and I tried to create a project that will run on 10.3-10.5. I followed the instructions in the "Cross Development Programming Guide" and used the 10.5 SDK while setting the "Mac OS X Deployment Target" build setting to 10.3. When I run the binary on 10.4, I get errors like this:

-[ABMultiValue valueForIdentifier:]: selector not recognized [self = 0x15d525c0]

After getting the runtime error, I checked the docs and discovered that this method showed up in 10.5.

I was hoping I could get the compiler to warn me about these things. Is there a compiler flag that helps? Or should I forget about the "Deployment Target" build setting and create multiple targets or projects that use different SDKs?

thanks,
Rob
_______________________________________________

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: cross development, missing methods
      • From: Ken Thomases <email@hidden>
    • Re: cross development, missing methods
      • From: Nick Zitzmann <email@hidden>
  • Prev by Date: Re: defaultCenter's addObserver
  • Next by Date: Re: Universal app fails on PPC.
  • Previous by thread: [Meeting] Toronto Area Cocoa and WebObjects Developer Group - October 21
  • Next by thread: Re: cross development, missing methods
  • Index(es):
    • Date
    • Thread