• 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: Cd ejection detecting
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Cd ejection detecting (From: Sanri Parov <email@hidden>)

  • Prev by Date: Re: Thinking about shareware prices... (was a question about NSDate inside userDefaults)
  • Next by Date: Re: displaying NSUpArrowFunctionKey, NSDeleteFunctionKey and friends?
  • Previous by thread: Cd ejection detecting
  • Next by thread: Re: XML and XSLT
  • Index(es):
    • Date
    • Thread