简体   繁体   English

OSX 64位二进制文​​件中没有Carbon Human-Interface-Toolbox?

[英]No Carbon Human-Interface-Toolbox in OSX 64-bit binaries?

I get the impression that Carbon Human Interface Toolbox does not work in 64-bit binaries. 我的印象是Carbon Human Interface Toolbox在64位二进制文​​件中不起作用。

Apple's documentation says: 苹果的文档说:

The Carbon Help Manager is not available to 64-bit applications. Carbon帮助管理器不适用于64位应用程序。

... ...

The Control Manager is not available to 64-bit applications. 控制管理中心不适用于64位应用程序。

... ...

The Data Browser is not available to 64-bit applications. 数据浏览器不适用于64位应用程序。

... ...

I just want to verify that: 我只想验证一下:

  • There is no work-around around this. 周围没有解决方法。

  • If this is simply the case. 如果只是这种情况。 Why don't Apple's documentation simply state it as such? 为什么Apple的文档没有这样简单地说明呢?

I get the impression that Carbon Human Interface Toolbox does not work in 64-bit binaries. 我的印象是Carbon Human Interface Toolbox在64位二进制文​​件中不起作用。 … I just want to verify that: ……我只想验证一下:

  • There is no work-around around this. 周围没有解决方法。
  • If this is simply the case. 如果只是这种情况。 Why don't Apple's documentation simply state it as such? 为什么Apple的文档没有这样简单地说明呢?

It does. 是的 From the 64-bit Guide for Carbon Developers : 摘自《面向碳开发商64位指南》

In particular, the APIs used to implement a Carbon user interface are generally available only to 32-bit applications. 特别是,用于实现Carbon用户界面的API通常仅对32位应用程序可用。 If you want to create a 64-bit application for Mac OS X, you need to use Cocoa to implement its user interface. 如果要为Mac OS X创建64位应用程序,则需要使用Cocoa来实现其用户界面。

From the HIToolbox Release Notes : HIToolbox发行说明

The HIToolbox and HIServices frameworks are available for use in 64-bit applications, but not all APIs are available. HIToolbox和HIServices框架可用于64位应用程序,但并非所有API都可用。 In particular, the HIToolbox APIs for creating and managing UI elements (menus, windows, and views) are not available. 特别是,用于创建和管理UI元素(菜单,窗口和视图)的HIToolbox API不可用。 Use Cocoa to build the UI for a 64-bit application. 使用Cocoa来为64位应用程序构建UI。

A few HIToolbox and HIServices functions (such as the Carbon Event Manager's hotkey API) and a lot of types (such as PhysicalKeyboardLayoutType ) and constants (such as the ANSI key codes in Event Manager) escaped the axe, which is why the frameworks themselves are not deprecated/unavailable. 一些HIToolbox和HIServices函数(例如Carbon Event Manager的热键API)以及许多类型(例如PhysicalKeyboardLayoutType )和常量(例如Event Manager中的ANSI键代码)逃脱了斧头,这就是框架本身的原因未弃用/不可用。

Carbon was created as a stop-gap to help people transition from OS 9 to OS X. It's been 10 years, you should be transitioned by now. Carbon的创建是一个权宜之计,可帮助人们从OS 9过渡到OSX。已经10年了,您现在应该过渡。 Note that you're in good company - Adobe refused to move off of Carbon for CS until they realized they were going to miss the 64 bit boat when Snow Leopard came out. 请注意,您的关系很好-Adobe拒绝从Carbon转到CS,直到他们意识到当Snow Leopard出现时他们会错过64位平台。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM