cross development, missing methods
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