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

Xcode Souce Code Extensionを使ってみた

53e469a19bcb4584c87789d237128ca0?s=47 matuyuji
October 13, 2016

Xcode Souce Code Extensionを使ってみた

Xcode 8から使うことできるようになった拡張機能「Xcode Souce Code Extension」について

53e469a19bcb4584c87789d237128ca0?s=128

matuyuji

October 13, 2016
Tweet

Transcript

  1. 9DPEF4PVDF$PEF &YUFOTJPOΛ࢖ͬͯΈͨ ୈճ$PDPBษڧձؔ੢  !NBUVZVKJ

  2. @matuyuji safx-dev.blogspot.jp

  3. 9DPEF

  4. None
  5. 4PVSDF&EJUPS&YUFOTJPOT

  6. %FNP

  7. %FNP ʊਓਓਓਓਓਓʊ ʼ ಥવͷࢮ ʻ ʉY^Y^Y^Y^Y^ʉ.

  8. 9DPEF4PVDF$PEF &YUFOTJPO w ΞϓϦͷΤΫεςϯγϣϯͱͯ͠ఏڙ͞ΕΔ w J04ͷ8BUDI&YOUFOTJPOΈ͍ͨͳ͔Μ͡ w ϓϩηε͸ผʹͳΔ w ϝχϡʔ͔Β࣮ߦ͢Δ

  9. 4PVSDF&EJUPS$PNNBOE func perform( with invocation: XCSourceEditorCommandInvocation, completionHandler: (NSError?) -> Void

    ) -> Void ϝχϡʔ͔Βݺͼग़͞ΕΔɻ ࠷ޙʹDPNQMFUJPO)BOEMFSΛݺͿ
  10. 9$4PVSDF&EJUPS$PNNBOE*OWPDBUJPO public class XCSourceEditorCommandInvocation : NSObject { public var commandIdentifier:

    String { get } public var buffer: XCSourceTextBuffer { get } ɿ }
  11. 9$4PVSDF5FYU#VGGFS public class XCSourceTextBuffer : NSObject { public var contentUTI:

    String { get } public var tabWidth: Int { get } public var indentationWidth: Int { get } public var usesTabsForIndentation: Bool { get } public var lines: NSMutableArray { get } public var selections: NSMutableArray { get } public var completeBuffer: String } ݱࡏͷιʔείʔυͷจࣈྻ͕౉ ͞ΕΔͷͰɺͦΕΛมߋͯ͠ฦ͢
  12. YQDDBDIFDUM sudo /usr/libexec/xpccachectl Ͱɺ࠶ىಈ (macOS 10.11)

  13. None
  14. None
  15. None
  16. None
  17. None
  18. None
  19. 3FGFSFODF w 88%$6TJOHBOE&YUFOEJOHUIF9DPEF 4PVSDF&EJUPS w 2JJUB9DPEF4PVSDF&EJUPS&YUFOTJPOΛࢼ͢