Finding os version at compile time and os version at runtime?
Finding os version at compile time and os version at runtime?
- Subject: Finding os version at compile time and os version at runtime?
- From: Jerry LeVan <email@hidden>
- Date: Sat, 15 Dec 2007 20:06:36 -0500
Hi,
I have an app I am trying to maintain with one set of sources.
The app uses the quartz filter manager and some leopard pdfkit
stuff that is not available in the 10.4 universal sdk.
I would like to be able to detect the target os version at
compile time so I can prevent the 10.5 stuff from compiling
when I am building a universal version. ( It is all in
a single subroutine).
I also need to be able to detect at runtime if the app
is running a version < 10.5 so I can disable the menu
that invokes the 10.5 code.
Is there a standard way for doing both of these tasks?
Thanks,
Jerry
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden