Re: Volume mounted notification?
Re: Volume mounted notification?
- Subject: Re: Volume mounted notification?
- From: Eric Peyton <email@hidden>
- Date: Mon, 24 Sep 2001 00:02:13 -0500
You can use NSWorkspace to notify you of the new mounts.
NSWorkspace.h
APPKIT_EXTERN NSString *NSWorkspaceDidMountNotification; // @"NSDevicePath"
APPKIT_EXTERN NSString *NSWorkspaceDidUnmountNotification; // @"NSDevicePath"
APPKIT_EXTERN NSString *NSWorkspaceWillUnmountNotification; // @"NSDevicePath"
Register for them as you would any of the NSWorkspace notifications.
Eric
On Sunday, September 23, 2001, at 10:23 PM, Johnny CN Lee wrote:
Hi,
How does an application known a new volume (hard disk or CD) has been
mounted?
I can monitor the "Volumes" folder to check if there is any change.
But I
don't feel it's a good solution...
Thanks,
J
_______________________________________________
cocoa-dev mailing list
email@hidden
http://www.lists.apple.com/mailman/listinfo/cocoa-dev