{"id":2648,"date":"2022-08-30T15:26:37","date_gmt":"2022-08-30T15:26:37","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/02\/04\/how-to-submit-a-osx-10-7-application-compatible-with-10-6-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:26:37","modified_gmt":"2022-08-30T15:26:37","slug":"how-to-submit-a-osx-10-7-application-compatible-with-10-6-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/how-to-submit-a-osx-10-7-application-compatible-with-10-6-collection-of-common-programming-errors\/","title":{"rendered":"How to submit a OSX 10.7 application compatible with 10.6?-Collection of common programming errors"},"content":{"rendered":"<p>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&#8217;t want to completely prevent 10.6 users from installing the application.<\/p>\n<p>How can I make it so that 10.7 users have access to the new features, and 10.6 users simply don&#8217;t have the new features but can still use the basic stuff?<\/p>\n<p>When I compile for 10.6 it doesn&#8217;t load the SDK that has &#8220;InApp&#8221;, as expected. And I suppose if I compile for 10.7 users won&#8217;t be able to install it from the AppStore.<\/p>\n<ol>\n<li>\n<p>You can use one of these methods to determine the user&#8217;s OS version, then if they are running Lion, run the code, if they aren&#8217;t don&#8217;t run it (use an if statement)<\/p>\n<p>Edit: You&#8217;ll also have to weak link the storekit framework<\/p>\n<\/li>\n<li>\n<p>Not sure if this helps, but for newer API&#8217;s (such as those for Lion only) I just use an IF statement with respondToSelector:<\/p>\n<p>This is one of the way suggested by Apple and you don&#8217;t have to mess with knowing a particular OS during runtime.<\/p>\n<\/li>\n<li>\n<p>Could you create a bundle that could get loaded and offer the 10.7 features? Your real app could check to see which OS it&#8217;s running under and not load the 10.7 bundle. I don&#8217;t know if this would work since it wouldn&#8217;t be unreasonable for a 10.7-SDK bundle to refuse to load in a 10.6 SDK app.<\/p>\n<p>Another possibility might be to have two apps under the hood, and have a very small shell app (possibly even a script) that detects the host OS and execs the OS-correct executable.<\/p>\n<\/li>\n<\/ol>\n<p id=\"rop\"><small>Originally posted 2014-02-04 12:12:28. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>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&#8217;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&#8217;t have [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2648","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/2648","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=2648"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/2648\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=2648"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=2648"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=2648"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}