Re: LSSharedFIleList API deprecated
> On Dec 9, 2015, at 5:04 PM, Dragan Milićwrote: > > Yeah, but I need to manage system-wide items, like favorites (found in > Finder’s sidebar), recent document (on system level, not my application > level), recent servers, etc. Finder still does that so I don’t really get the > response that “shared file lists are no longer supported.” The existing API > still works though, but being deprecated clearly shows in which direction > things are moving. Is that yet another feature developers are stripped of so > they couldn’t produce applications which mimic some of Apple’s applications > features? Or maybe a new API is still under development, and Apple is giving us an early heads up. Would be nice if they said so… ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: LSSharedFIleList API deprecated
> I opened a radar a while back and got this answer: > > "Shared file lists are no longer supported. There is no exact replacement > API.” > “If you want to manage your recent documents list, you should use > NSDocumentController." > “If you want to run a background tool independent of your main application, > you should use a Launch Agent." > > My application already uses NSDocumentController; however, there is no means > to remove a recent item from the list and my application uses > LSSharedFileListItemRemove. I updated the radar with the need to remove > recent items. No word yet. > —kevin While not optimal, I would imagine this could be accomplished with a combination of recentDocumentURLs, clearRecentDocuments: and noteNewRecentDocumentURL:. Greg ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: LSSharedFIleList API deprecated
On sre 09.12.2015., at 19.12, Greg Weston wrote: >> I opened a radar a while back and got this answer: >> >> "Shared file lists are no longer supported. There is no exact replacement >> API.” >> “If you want to manage your recent documents list, you should use >> NSDocumentController." >> “If you want to run a background tool independent of your main application, >> you should use a Launch Agent." >> >> My application already uses NSDocumentController; however, there is no means >> to remove a recent item from the list and my application uses >> LSSharedFileListItemRemove. I updated the radar with the need to remove >> recent items. No word yet. >> —kevin > > While not optimal, I would imagine this could be accomplished with a > combination of recentDocumentURLs, clearRecentDocuments: and > noteNewRecentDocumentURL:. Yeah, but I need to manage system-wide items, like favorites (found in Finder’s sidebar), recent document (on system level, not my application level), recent servers, etc. Finder still does that so I don’t really get the response that “shared file lists are no longer supported.” The existing API still works though, but being deprecated clearly shows in which direction things are moving. Is that yet another feature developers are stripped of so they couldn’t produce applications which mimic some of Apple’s applications features? -- Dragan ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: LSSharedFIleList API deprecated
I opened a radar a while back and got this answer: "Shared file lists are no longer supported. There is no exact replacement API.” “If you want to manage your recent documents list, you should use NSDocumentController." “If you want to run a background tool independent of your main application, you should use a Launch Agent." My application already uses NSDocumentController; however, there is no means to remove a recent item from the list and my application uses LSSharedFileListItemRemove. I updated the radar with the need to remove recent items. No word yet. —kevin > On Dec 8, 2015, at 3:00 PM, cocoa-dev-requ...@lists.apple.com wrote: > > This may not be the appropriate list to ask, but I couldn’t think of any > better place… > > Now that (as of El Capitan) complete LSSharedFileList API is deprecated, > which API is one supposed to use to retrieve list of items (in “favorites”, > “recent documents”, “recent servers”, “login items” etc…) and do useful > things with them (add/remove items from lists, resolve URLs, etc…)? Is there > any public not-deprecated API to do that (preferably Obje-C or Swift)? I > couldn’t find any useful info in El Capitan developer release notes. > > Thanks. > > -- Dragan ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com