Re: High Level Toolkit -- is it obsolete or not?
Re: High Level Toolkit -- is it obsolete or not?
- Subject: Re: High Level Toolkit -- is it obsolete or not?
- From: Seth Willits <email@hidden>
- Date: Mon, 22 Feb 2010 23:15:29 -0800
On Feb 22, 2010, at 11:53 AM, Joel May wrote:
> I'm porting an application from Carbon to Cocoa.
Good idea.
> The Carbon64BitGuide.pdf explains how the carbon api's have been updated for 64 bit. But I thought carbon was dead in 64 bit and Snow Leopard.
Some of the APIs are deprecated, some are not. If something is not deprecated and in 64-bit, then feel free to use it.
The guide you mention sums it up:
"Most APIs in Mac OS X v10.5 are available to both 32-bit and 64-bit applications, but some APIs commonly used by Carbon applications are not. In particular, the APIs used to implement a Carbon user interface are generally available only to 32-bit applications. If you want to create a 64-bit application for Mac OS X, you need to use Cocoa to implement its user interface."
APIs like the Carbon Event Manager are still available, but the interface-related APIs such as Window Manager, Menu Manager, etc are not.
> I'd like to use the cocoa equivalents of GetButton() and GetKeys() but I can't find them.
There are no equivalents of those functions in Cocoa. Even games use mouseDown/keyDown etc, and you know there's no one more whiny and picky than a gamer. :-)
If you're really having problems with delayed events, then your main thread must be very busy. How big of a delay are you seeing? Perhaps you should optimize whatever is eating all of that time (put it on a separate thread)?
> If High Level Toolkit is ok, then why doesn't it appear in the docs.
Apple is annoyingly aggressive about purging "old" documentation, and its search capability on its website is horrible. At any rate, assuming you mean the Human Interface Toolkit, the general answer to why some of it is "OK" and some isn't is because some of it is deprecated and some of it isn't. It's as simple as that. HIT is composed of several APIs. Select methods in select APIs are available. It's not always "all or nothing" inclusion.
I hope that helps,
--
Seth Willits
_______________________________________________
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