Skip navigation.
 
mlRe: Non-AppKit equivalent for NSWorkspace and/or future-proof poseAsClass?
FROM : Sean McBride
DATE : Wed Jan 09 22:42:43 2008

On 1/9/08 3:23 PM, Ricky Sharp said:

>>> Carbon events seems a good way to go:
>>>
>>> See kEventClassApplication in CarbonEvents.h

>>
>> I'm not sure I'd recommend Carbon Events for new code.  Apple 
>> decided to
>> kill 64 bit Carbon, and if you look through CarbonEvents.h you'll see
>> that most APIs are 32 bit only.

>
>Bad advice; there is still a definite need for Carbon.  I would thus 
>recommend that it is indeed used for new code when necessary.


Notice I said "I'm not sure I'd recommend Carbon _Events_ for new code"
not "I'm not sure I'd recommend Carbon for new code".

>example, to get better support for speech synthesis, speech 
>recognition and Ink, I've had to rely upon the Carbon APIs.  Cocoa 
>APIs do exist for some of these areas, but do not expose all the 
>capabilities of the underlying APIs.


The APIs in Ink.h, SpeechRecognition.h, and SpeechSynthesis.h are
available in 64 bit; the APIs in CarbonEvents.h (largely) are 32 bit only.

--
____________________________________________________________
Sean McBride, B. Eng                <email_removed>
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada