Results 1 to 4 of 4

Thread: USB device removal dialog - how to get rid of it?

  1. #1
    QCar Creator Jirka Jirout's Avatar
    Join Date
    Jul 2005
    Location
    Netherlands
    Posts
    590

    USB device removal dialog - how to get rid of it?

    Is there a way of turning off the dialog window, that pops up every time a USB mass storage device is disconnected? I am using my iPod as a storage for MP3s to be played by the Mac mini, I can detect its connection and disconnection in the application, but the system dialog window is really annoying.

  2. #2
    CarFrontEnd Creator iamgnat's Avatar
    Join Date
    Jul 2004
    Location
    NoVA
    Posts
    867
    Quote Originally Posted by Jirka Jirout
    Is there a way of turning off the dialog window, that pops up every time a USB mass storage device is disconnected? I am using my iPod as a storage for MP3s to be played by the Mac mini, I can detect its connection and disconnection in the application, but the system dialog window is really annoying.
    How are you disconnecting it? The only time I get a dialog when using USB for my iPod is when I pull it without ejecting it first.

    If that is the issue there is an eject command as well as listening for the mount/unmount notifications in NSWorkspace (I haven't used it yet though):

    Code:
    - (BOOL) unmountAndEjectDeviceAtPath:(NSString *) path
    -dave

  3. #3
    QCar Creator Jirka Jirout's Avatar
    Join Date
    Jul 2005
    Location
    Netherlands
    Posts
    590
    Yes, I am just unplugging the iPod. And I am very well aware of the data loss possibility and I am willing to accept it.

    I know about the -unmountAndEjectDeviceAtPath: but that would mean I would have to add an Eject button somewhere and remember to use it every time...

  4. #4
    CarFrontEnd Creator iamgnat's Avatar
    Join Date
    Jul 2004
    Location
    NoVA
    Posts
    867
    Quote Originally Posted by Jirka Jirout
    Yes, I am just unplugging the iPod. And I am very well aware of the data loss possibility and I am willing to accept it.
    lol. Yeah I don't get worked up about it either.

    I know about the -unmountAndEjectDeviceAtPath: but that would mean I would have to add an Eject button somewhere and remember to use it every time...
    Are you just unpluging it randomly, or when you turn off the car? If you have the Mac going to sleep when the car is turning off (or even if it is shutting down), then there is another notification you can listen for and have it do the eject for you then (and maybe bury an eject button somewhere else). If I recall correctly, if you listen for the sleep/shutdown notifications, you are allowed to delay the event for about 30 seconds.

    To the original more specific question though, no I don't think there is a way to disable it.

    -dave

Similar Threads

  1. Looking For USB Voltmeter or simliar device
    By mukow in forum General Hardware Discussion
    Replies: 7
    Last Post: 09-17-2009, 11:49 AM
  2. Replies: 14
    Last Post: 08-15-2005, 06:27 PM
  3. Funny Thing... I was ordering a USB sound card when...
    By Phat Justice in forum Off Topic
    Replies: 13
    Last Post: 05-02-2004, 12:53 PM
  4. Replies: 4
    Last Post: 04-06-2004, 09:52 AM
  5. USB device not detected after hibernate?
    By rbarr110 in forum Software & Software Development
    Replies: 1
    Last Post: 02-14-2004, 01:01 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •