Allow NSTouchBar and NSToolbar modification for Xcode Source Editor Extensions

Originator:ward
Number:rdar://29660390 Date Originated:2016-12-14
Status:Open Resolved:No
Product:Xcode Product Version:Xcode 8.2
Classification:Enhancement Reproducible:Always
 
Summary:
Support addition/modification of buttons in the Toolbar and Touch Bar in Xcode for supporting Xcode Source Editor Extensions.

Such behavior could be implemented in Xcode in a similar vein to Safari Extensions (with SFSafariExtensionViewController)

Rationale / possible use-cases:

- Localization: in some countries (such as Italy), common characters used in programming (such as a curly-brace) require complex 3-key chords, causing a headache and repeated hand stress for the programmer. The ability to add a curly-brace button to the touch bar for such users would be invaluable. Alternatively, add those braces to Xcode yourself. Seriously, curly braces are hard on an Italian keyboard.

- Invocation: some users include one extension or another in their common/daily workflow, and an ability to add a Toolbar or Touch Bar button for one-touch invocation of their favorite editor extensions, perhaps with custom icon, would be convenient and useful.

Steps to Reproduce:
(not a bug)

Expected Results:
(not a bug)

Actual Results:
(not a bug)

Version:


Notes:


Configuration:
MacBook Pro (15-inch, Late 2016)
macOS 10.12.2 (public)
Xcode 8.2 (public/MAS)

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!