Are you still using any Carbon APIs due to a lack of a Cocoa replacement?
@mjtsai You should be able to (and should!) move off the Process Manager and File Manager. There are Cocoa replacements for both.
-
-
@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.
-
-
@grynspan Oh, the other file manager one is that Cocoa equivalent to FSPathReplaceObject() wasn't working for me. It's on my list to Radar. -
@grynspan Is there a Cocoa replacement for TransformProcessType()? If so, I don't think it was available for the version I’m targeting.
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