Re: More newbie questions
Re: More newbie questions
- Subject: Re: More newbie questions
- From: John Warner <email@hidden>
- Date: Thu, 09 Jun 2005 08:23:10 -0400
On Jun 8, 2005, at 8:36 AM, Andy Bettis wrote:
Is there any sort of easy gestalt checking functions (like which OS
version)?
If you just need to check for a particular class, you can use the
NSClassFromString() function. For example, to see if you can use
NSShadow (10.3 and up) you can do
Class shadowClass = NSClassFromString(@"NSShadow");
if (shadowClass)
{
//you can use NSShadow
}
else
{
//you can't
}
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden