this first time i've had "migrate" app 1 version of mac os x another. in past, had been compiling app on 10.5. on 10.5 used it. when started compiling 10.6 (i waited until 10.6.3), dropped support 10.5, easy squeezy.
there common method developers implement new features os n, while still maintaining compatibility in same binary os n-1?
want avoid adding lion features (full-screen mode, etc.) if there's no way apps run under snow leopard. how developers handle this?
thanks!
code:
#if macosx_deployment_target == mac_os_x_version_10_7 //lion stuff #else //snow leopard stuff #endif
or
code:
#if macosx_deployment_target < mac_os_x_version_10_7 if (![someobject respondstoselector:@selector (lionfeaturemethod:)]) { // pre 10.7 stuff here } else #endif { // 10.7 stuff here }
Forums Macs Mac Programming
- iPhone
- Mac OS & System Software
- iPad
- Apple Watch
- Notebooks
- iTunes
- Apple ID
- iCloud
- Desktop Computers
- Apple Music
- Professional Applications
- iPod
- iWork
- Apple TV
- iLife
- Wireless
Comments
Post a Comment