mosen / mysides

A command line application for managing OS X Finder sidebar favourites
MIT License
227 stars 30 forks source link

SDK deprecation #14

Open CharlesIC opened 7 years ago

CharlesIC commented 7 years ago

Many SDKs used in the project (e.g. the LSSharedFileListCreate method) have been deprecated in macOS 10.12 (Sierra). They still work (for now?) but it's worth updating to the new Service Management framework. More info at these links: OS X at startup" code deprecation Make Swift Cocoa app launch on startup on OS X 10.11

mosen commented 7 years ago

Yeah many of the shared file list functions are going behind XPC so it's sfltool or nothing unfortunately.

CharlesIC commented 7 years ago

OK, I wasn't able to find a new way of manipulating the SFL files that is meant to replace the deprecated methods in LSSharedFileList.h. Unless you need to remove an item, sfltool will do, otherwise the current method seems to be the way to go at least until the functionality gets removed from the OS.

mosen commented 7 years ago

I'll try to update it but otherwise we need a new method, you are correct

wongzigii commented 6 years ago

Any update on this? Is there any replacement for the deprecated LSSharedFileList?

mosen commented 6 years ago

Nope. There's API private to apple but we can't use it

RicardoAnjos commented 6 years ago

In Mojave LSSharedFileListCreate and LSSharedFileListItemRemove are no longer. Only listing. So the last version were working is in High Sierra. Would be great to find another way to add and remove icons from favourites though

Tatsh commented 5 years ago

Not having a problem with this in Mojave @RicardoAnjos.