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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With