@mjtsai That would be unexpected. Radar please. With a test project would be good.
-
-
-
@grynspan Radar 28500991. -
@mjtsai The value of `info` is undefined on error return, and you didn't zero it. It's just garbage. -
@grynspan My actual code checks that there was no error, and the example that I sent logs that the error was 0. -
@mjtsai The bug would be that it's returning noErr instead of fnfErr, I suppose. :) - View other replies
-
@mjtsai That said, that API is deprecated. Please use NSURLIsApplicationKey instead. -
@grynspan Yeah. Slow at adopting because had lots of problems with those keys when they were first introduced. - Show more
-
-
-
@mjtsai kLSItemInfoIsApplication is deprecated on 10.12 -
@etresoft Yes, but that doesn't mean it should break. -
@mjtsai It means Apple messed with it. You can keep using it for older targets, but assume it is now broken unless testing says otherwise. -
@mjtsai I got lucky. SMCopyAllJobDictionaries was deprecated in 10.11 but still works. I have more time to write my launchctl output parser.
-
-
-
@mjtsai Looks like 80% of Launch Services is deprecated. I just parse the output of command-line tools that Apple says should not be parsed. -
-
@grynspan What a comedian! So what’s it worth to you to make my app, and its million-odd users, stop parsing tool output?
-
@etresoft I am not allowed to bribe you. Sorry. Them's the rules. -
@etresoft But if you find that you need info not available by supported API, an enhancement request via Radar is always appreciated. -
@grynspan OK. Your bit-bucket is now 2 RDARs closer to full. I can’t wait to see those new APIs that will replace launchctl and lsregister. -
@etresoft Well launchctl isn't part of Launch Services. Can't help you there. Ask@jauricchio. As for the other, got a number? - View other replies
-
@jauricchio@grynspan tagged you for rdar://28484009. SMCopyAllJobDictionaries still works but I will have to parse launchctl output soon. - Show more
-
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.
Michael Tsai
Jonathan Grynspan