Are you still using any Carbon APIs due to a lack of a Cocoa replacement?
@grynspan Some resource manager and process manager stuff. Also file manager, but I think most or all of that could be migrated.
-
-
@mjtsai You should be able to (and should!) move off the Process Manager and File Manager. There are Cocoa replacements for both. - View other replies
-
@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. - Show more
-
-
-
@mjtsai What are your remaining use cases for the Resource Manager? -
@grynspan Reading/writing resources for .webloc files and disk image license agreements. -
@mjtsai You should put your .webloc data in the data fork, FWIW. -
@grynspan I'm doing that, too, of course. But at one point needed to read files with only resource fork. Perhaps no longer relevant. -
@mjtsai There may be such legacy .webloc files floating out there, but the system should never be creating new ones. -
@grynspan If only there had been an API for reading those files years ago… -
@mjtsai Please file a radar requesting such API. (Or, if you already have, let me know the radar number?)
-
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