• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Volume mounted notification?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Volume mounted notification? (From: Johnny CN Lee <email@hidden>)

  • Prev by Date: Volume mounted notification?
  • Next by Date: Re: Why no transparent window?
  • Previous by thread: Volume mounted notification?
  • Next by thread: Re: Why no transparent window?
  • Index(es):
    • Date
    • Thread