Re: Cd ejection detecting
Re: Cd ejection detecting
- Subject: Re: Cd ejection detecting
- From: Tomas Zahradnicky <email@hidden>
- Date: Wed, 7 Jan 2004 23:57:49 +0100
Hi everybody,
I'd like the user interface of my program changes whenever a cd is
ejected.
What have I to do? Use Notification or Events?
Is there any source code around?
Hi,
How about using NSWorkspace and subscribe for either of these notifications?
- NSWorkspaceDidMountNotification
- NSWorkspaceDidUnmountNotification
- NSWorkspaceWillUnmountNotification
You can tell from the path whether the volume was or wasn't CD.
-Tomas
--
Ing. Tomas Zahradnicky, Jr.
Production Manager, 24U Software
Associate Member, Filemaker Solutions Alliance
mailto:email@hidden
http://www.24uSoftware.com
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.