Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to submit a OSX 10.7 application compatible with 10.6?

I want to build an OSX application that will use some of the new 10.7 SDK features (more specifically, In-App purchases). However I don't want to completely prevent 10.6 users from installing the application.

How can I make it so that 10.7 users have access to the new features, and 10.6 users simply don't have the new features but can still use the basic stuff?

When I compile for 10.6 it doesn't load the SDK that has "InApp", as expected. And I suppose if I compile for 10.7 users won't be able to install it from the AppStore.

like image 470
Nathan H Avatar asked Aug 15 '11 10:08

Nathan H


1 Answers

You can use one of these methods to determine the user's OS version, then if they are running Lion, run the code, if they aren't don't run it (use an if statement)

Edit: You'll also have to weak link the storekit framework

like image 109
Matt S. Avatar answered Nov 15 '22 08:11

Matt S.