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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to