• 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: Notification for mount / unmount
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Notification for mount / unmount


  • Subject: Re: Notification for mount / unmount
  • From: Nick Zitzmann <email@hidden>
  • Date: Sat, 20 Aug 2005 15:09:22 -0600


On Aug 20, 2005, at 2:58 PM, Martin Hairer wrote:

Hi, I would like my app to be notified when a volume is mounted / unmounted.
It turns out that it works fine (on Tiger at least) if I listen for distributed notifications
of type "com.apple.sidebarlists.503.systemitems". However, this doesn't seem to
be documented anywhere. So my questions are:


1. Is this the proper way of doing this?

2. Do I have some guarantee that this will work in future versions of MacOS
despide the fact that it doesn't seem to be documented?

No and No.

3. If not, what is the proper way?

<file:///Developer/ADC Reference Library/documentation/Cocoa/ Reference/ApplicationKit/ObjC_classic/Classes/NSWorkspace.html#// apple_ref/doc/uid/20000391-3572-BCIEFIDI>


You need to use the NSWorkspace notification manager to receive NSWorkspace notifications.

Nick Zitzmann
<http://www.chronosnet.com/>

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Notification for mount / unmount (From: Martin Hairer <email@hidden>)

  • Prev by Date: Re: using bless to change boot device [yet again]
  • Next by Date: WSMakeStubs/WSGenerateObj findings calling ASP.NET webservice
  • Previous by thread: Notification for mount / unmount
  • Next by thread: WSMakeStubs/WSGenerateObj findings calling ASP.NET webservice
  • Index(es):
    • Date
    • Thread