Are you still using any Carbon APIs due to a lack of a Cocoa replacement?
@rob_rix Yup. There are plenty of C APIs on OS X that aren't part of Carbon. I'm curious who is still using properly-Carbon APIs.
-
-
@grynspan Some resource manager and process manager stuff. Also file manager, but I think most or all of that could be migrated. - View other replies
-
@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
- Show more
-
-
-
@grynspan The other obvious case is AppleScript… -
@mjtsai AppleScript is supported at the Cocoa level with NSAppleScript. -
@grynspan Can't send Apple events until 10.11. (I haven't yet checked whether that works for my purposes.) -
-
-
@grynspan@mjtsai Actually proposed it direct to Sal Soghoian: https://bitbucket.org/hhas/swiftae Will try Radar once head-desking stops. (cc@nebelch) -
-
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
hhas
// 