Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Xcode Editor Extensions

Sponsored · Ship Features Fearlessly Turn features on and off without deploys. Used by thousands of Ruby developers. →

Xcode Editor Extensions

Slides of talk given @ CocoaHeads Hamburg, August 2016.

Xcode 8 now supports an official extension API. Let's have a look at the first extension type "Source Editor Extension" and see what we can and can't do with it.

Avatar for René Lindhorst

René Lindhorst

August 04, 2016

Other Decks in Programming

Transcript

  1. Possible Functionality » Content addition and deletion » Content transformation

    » Content selection » Pasteboard modification » In-file navigation René Lindhorst, August 2016
  2. Creating an extension » Create a Cocoa project » Select

    the project name in the project navigator » Go File > New -> Target... » Navigate OS X > Application Extension » Select Xcode Source Editor Extension René Lindhorst, August 2016
  3. Summary Current extension point is limited to pure text manipulations

    User has to invoke extension from a menu or keyboard shortcut René Lindhorst, August 2016
  4. But "Old" third-party Xcode extensions are NOT dead By removing

    code signing, existing plugins will still work https://github.com/steakknife/unsign https://github.com/fpg1503/MakeXcodeGr8Again René Lindhorst, August 2016
  5. Radars to duplicate » Add Build Extensions for Xcode rdar://26878879

    » Editor Extensions should be able to prompt for user approval of changes rdar://26850267 » Support Source Editor Extensions Preferences rdar://26866797 » Allow Source Editor Extensions to run on source change rdar:// 26866658 » Allow updating the Xcode gutter via Source Editor Extensions rdar://26866950 » Editor Extensions should be able to prompt for user approval of changes rdar://26850267 René Lindhorst, August 2016
  6. Links I https://developer.apple.com/videos/play/wwdc2016/414/ “We’ll also show you how to add

    commands to the source editor with new Xcode Extensions that you can distribute on the Mac App Store.” http://www.russbishop.net/xcode-extensions “Xcode 8 now supports an official extension API. The first extension type supported is the Source Editor extension (though probably not the last).” René Lindhorst, August 2016