Details on fileManagerWithAuthorization?

Hello,


I am looking for details on requestAuthorizationOfType in NSWorkspace class.

And NSFileManager fileManagerWithAuthorization function related to it.


Is this supposed to work in any application or is it only for sandbox or only for Mac App Store?


Even without code signing or entitlement, I get the authorization dialog asking for password.

But I can't make it to work at all when setting file attributes.


This would be nice to replace some deprecated Authentication functions we use.