문제

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!)

도움이 되었습니까?

다른 팁

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top