In my Cocoa app, I want the user to take the app full screen on Lion. For this, I would like to add the following:
if (check for lion or above) { [mywindow setCollectionBehavior:NSWindowCollectionBehaviorFullScreenPrimary]; }
I add this conditionally for Lion, because NSWindowCollectionBehaviorFullScreenPrimary is only available with 10.7. What is the best way to test a lion or higher?
source share