[英]How do I include calls to methods only present in one operating system version when compiling for multiple versions?
I have an app that is being compiled with a minimum system requirement of Tiger (OS X 10.4), but I need to include some code to deal with Spaces if the app is executing on Leopard (OS X 10.5). 我有一个使用最低系统要求Tiger(OS X 10.4)编译的应用程序,但是如果该应用程序在Leopard(OS X 10.5)上执行,则需要包含一些代码来处理Spaces。
How do I do this? 我该怎么做呢?
(The call I need to make is to -[NSWindow setCollectionBehavior:]
). (我需要拨打
-[NSWindow setCollectionBehavior:]
)。
The Cross-Development Programming Guide describes the techniques in detail. 《 跨开发编程指南》详细介绍了这些技术。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.