I need to get paths of objects displayed in Favorites section of Finder Sidebar (for current user). How can I achieve this?
There's not a Cocoa API, per se. You would use the LSSharedFileList API. The API is public but the only documentation is the header file, /System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Headers/LSSharedFileList.h. You want the kLSSharedFileListFavoriteItems
(and maybe kLSSharedFileListFavoriteVolumes
) list type(s).