On Sat, Feb 28, 2009 at 10:15 AM, xEsk PiV <[email protected]> wrote: > Hello, > > I have some doubts with MacOS X 10.5 and 10.4: > > 1) If I compile my application with MacOS X SDK 10.5 and I run it > under MacOS X SDK 10.4 (and I don't use any explicit 10.5 class) it > will run without problems?
(small nit on terminology... you don't run under an SDK) Yes* but only if you specify the (min) target OS as 10.4 and SDK as 10.5. Review... <http://developer.apple.com/documentation/DeveloperTools/Conceptual/cross_development/HowItWorks/chapter_2_section_3.html> * Also test on both 10.5 and 10.4 because variations in how the frameworks function can bite your. > 2) If I use a specific 10.5 class (i.e: NSDockTile) is obvious it > won't run under MacOS X 10.4, but if I code something like this, will > run under MacOS X 10.4? Selective use of a class at runtime is a little more difficult given how trivial it is to test for method support (respondsToSelector:)... Let me see if I can find a good example of how to selectively use a class at runtime. -Shawn _______________________________________________ Cocoa-dev mailing list ([email protected]) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
