Tuesday, 15 September 2015

osx - How to get current user's default movie directory and other default directories? -


In OS X mentioned in the title, how can I get an existing patent for the user's "Favorite" directories on the left Am I

In addition, if you guys will also tell me whether the document has been removed again in my question thank you in advance!

If you want to access only normal directories such as documents, desktops, movies, etc., < Code> - [NSFileManager URLsForDirectory: inDomains:] is the API you are looking for. You would like to use the NSUserDomainMask for the domain parameter and the NSSearchPathDirectory constant (like NSMoviesDirectory ) for the directory parameter.

If you are actually trying to get the list of folders, then the current user is in the "Favorites" section of their finder sidebar (users can customize this list), then do something for you The answers can be.

No comments:

Post a Comment