Looks like on 10.12 kLSItemInfoIsApplication can be true for URLs that don’t exist. :(
@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. -
@mjtsai Oof. Well, we've done a lot of work to make them better in the last few releases. 1/2 -
@mjtsai If you are still having trouble with them, please do file radars! 2/2 -
@grynspan They have been better lately, especially if I clear the cache when appropriate. But I’m still deploying to older OS versions. - 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