Announcement

Collapse
No announcement yet.

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

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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
    My pathetic worklog.
    CarFrontEnd (now it's own sub-forum!!!!)

    Comment


    • #3
      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...

      Comment


      • #4
        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
        My pathetic worklog.
        CarFrontEnd (now it's own sub-forum!!!!)

        Comment

        Working...
        X