The functions CFURLGetFSRef and CFURLCreateFromFSRef have deprecation warnings that say "not supported". That confuses me, because when I see "deprecated" I think "it may stop working at some point in the future", and when I see "not supported" I think "it doesn't work now". Which is it?
Replies
Where do you get each ?
I think both are correct, and not supported (in a certain OS version) is just a deprecated that has come to an end.
In any case, you should not use anymore.
-
Not sure what you mean by "where do you get each". For example, using
CFURLCreateFromFSRefproduces:warning: 'CFURLCreateFromFSRef' is deprecated: first deprecated in macOS 10.9 - Not supported [-Wdeprecated-declarations]
FSRef is also deprecated (and comes with the warning that it's not on friendly terms with APFS), so the question is: where are you getting your FSRef?
-
Yes, I know
FSRefis deprecated. I have some legacy code withFSRefall over the place, and it's hard to budget a man-month to fix something that's not actually causing problems for users. To give just one example of where anFSRefmight come from, some legacy data might contain an old-fashioned Alias handle, so I need to callFSResolveAlias.