Im trying to support features of an app on OS X Yosemite and later and block them on older versions.
i want my app to run on OS X 10.8 and later and have some features only work on 10.10 and later
will this work to check what operating system is running
i want it to hide the object if the application opens on any system earlier than 10.10
and also NSAppKitVersionNumber10_10 docent exist on Xcode 6.1 for some reason
i want my app to run on OS X 10.8 and later and have some features only work on 10.10 and later
will this work to check what operating system is running
Code:
-(void)awakeFromNib{
if (NSAppKitVersionNumber > NSAppKitVersionNumber10_9) {
[_sampleobject setHidden:FALSE];
}else
{
[_sampleobject setHidden:TRUE];
}
}
i want it to hide the object if the application opens on any system earlier than 10.10
and also NSAppKitVersionNumber10_10 docent exist on Xcode 6.1 for some reason