Cocoa equivalent of diskEvt/kEventClassVolume?

We have a drop-down menu of volumes in our UI, and I'd like to update it when a new disk is mounted. In the Classic days, this would involve watching for a diskEvt event. In Carbon, I think this was kEventClassVolume. What's the Cocoa equivalent?

(A pointer into Apple's documentation on this would satisfy the question. I've been unable to find anything!)

Answers


NSWorkspace posts NSWorkspaceDidMountNotification and friends on its notification center.


Disk Arbitration is responsible for those notifications. It's not written in Cocoa.


Need Your Help

Converting xml file into an xls file

java xml csv xls

I wrote an xml file using the below codes, how to convert that file into xls or csv file?

Width of a scroll bar in android

android

In my application scroll bar is just too skinny to use. Does anyone know how to change the width of this?