[CocoaApp isThisTiger]

David Dunham dunham at mac.com
Mon Oct 22 16:22:07 PDT 2007


On 22 Oct 2007, at 10:55, Shawn Erickson wrote:

> Check for the existance/lack of a feature that you need at runtime.

As in respondsToSelector?

Finlay

>  "hard core no Carbon Cocoa
> developers" need to grow up and stop being babies.

I agree, but I was curious as to the diametrically opposite approach.

Fabian

> 	if ((int)floor(NSAppKitVersionNumber) > NSAppKitVersionNumber10_3)
> 		return LSESystemVersionTiger;

This doesn't actually work:

NSAppKitVersionNumber10_3_5
The Application Kit framework included in Mac OS X v10.3.5


David Dunham
Voice/Fax: 206 783 7404             http://www.pensee.com/dunham/
Imagination is more important than knowledge. -- Albert Einstein



More information about the MacOSX-dev mailing list