objective c - FinderSync issues with sidebar icon, toolbar icon and context menu -


i developing mac app must provide support findersync application extension. works fine, except sidebar , toolbar icon issues.

  1. is there way programatically add toolbar , sidebar icons without user intervention? documentation, didn't find me that. refer these icons, mentioning user must manually drag folder manually sidebar, or manually customize toolbar, not api achieving @ runtime. there apps add if removes them toolbar.

  2. is there other way display icon folder, except iconset? noticed there other apps out there have icon in sidebar, not seem have icon set in bundle resources , cfbundleiconfile set icns resource.

  3. is there way disable menu item in menuformenukind: ? in normal nsmenu situation, menu item should have no action or target, not case. if so, menu item still enabled.

thanks lot help!

welcome world of pain. i've been developing finder sync extension well, here answers questions:

  1. now i'm searching way add programmatically toolbar button, saw phrases can done. add item sidebar, should use lssharedfilelist code: add item finder sidebar via same api can check if item present in sidebar, , not add duplicate.

  2. now (since mac os x 10.11) sidebar icon can changed via iconset. possible change via finder code injection, not allowed in 10.11.

  3. just use [menuitem setenabled:no]. please note not menu stuff available in 10.10 - instance, checkboxes not shown , separator item shown space. also, sender parameter in handlers empty nsmenuitem object.


Comments

Popular posts from this blog

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -