I thought I would share further information on this topic to help others who 
may come across this thread in the archives. 

I couldn't figure this out and found several similar bug reports from other 
developers in various forums, so I took the plunge and asked DTS. The official 
response is that:

"Regretfully, you have run into a series of bugs found in the Finder.  Launch 
Services does indeed honor the custom name for the favorite item as well as the 
icon, but Finder fails to honor both of those settings."
...
"So until the bug is fixed for LSSharedFileListInsertItemURL, you will have to 
stick with the default image and name associated with that NSURL."

The mechanism that Apple's own Favorites use to display custom icons 
(Applications, Downloads, user home, etc.) is not via Launch Services and is 
not available to developers.

-- Ben.



On 17 Dec 2012, at 19:47, [email protected] wrote:

> I am trying to add a new item to the Finder Sidebar Favorites 
> kLSSharedFileListFavoriteItems list. The API for doing this, 
> LSSharedFileListInsertItemURL, is not working for me. The Sidebar folder is 
> created, but with a generic folder icon and the name taken from the target 
> folder instead of the supplied display name. Can anyone see the error in the 
> code below? All the API calls are returning noErr or other success codes; 
> there is no error report.
> 
> The app is not Sandboxed.
> Running on OS X 10.7.5.
> 
> Thanks if you can help,
> 
> -- Ben


_______________________________________________

Cocoa-dev mailing list ([email protected])

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 [email protected]

Reply via email to