Are you still using any Carbon APIs due to a lack of a Cocoa replacement?
@grynspan I don't think there are Cocoa APIs for mounting or unmounting volumes.
-
-
@mjtsai Disk Arbitration can be used for this stuff. DADiskMount() and DADiskUnmount(). -
@grynspan Yes, in theory those will work. Not a drop-in replacement because they're async. -
@mjtsai Which is good because they do heavy I/O, and should be asynchronous. :) - View other replies
-
@grynspan I actually had to stop calling FSUnmountVolume on 10.11 because it stopped working… -
@mjtsai Oh, that's unfortunate. Please file a radar. - View other replies
-
@grynspan And now that the code is gone, I’m not likely to put it back to verify a potential fix. -
@mjtsai That's unfortunate.
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
Jonathan Grynspan
Rob Rix
Michael Tsai