« Weekend news | Home | IP in menubar version… »

Tip of the day: Carbon events for Cocoa app

Apple deprecated part of Carbon. But not all. While the GUI functions are going away, some functions like the event handling are still working. Even for 64 bit, most of the Carbon Events function still work.

So how do you get an event for a volume being mounted or unmounted in a Cocoa app?
Simply use the VolumeMounted and VolumeUnmounted events in CarbonApplicationEventsMBS.
01 08 11 - 13:41
four comments

Raw key down in application doesn’t work.

But I guess that’s related to the failure in ReadStudio to process keydown events.
Iain Stubbs - 03 08 11 - 02:55

Yes, right. Key events seem to take a different route on Cocoa.
Christian Schmitz (URL) - 03 08 11 - 09:03

I am running into the same problem: I need to record raw keydown events in my app that’s being ported from Carbon to Cocoa.
What’s the solution?
Thomas Tempelmann (URL) - 23 02 13 - 00:27

Use NSEventMonitorMBS.
Christian Schmitz (Email) (URL) - 23 02 13 - 00:41

Remember personal info?

Emoticons / Textile

Hide email:

Small print: All html tags except <b> and <i> will be removed from your comment. You can make links by just typing the url or mail-address.