Skip to content

Instantly share code, notes, and snippets.

@abhibeckert
Created June 11, 2014 00:56
Show Gist options
  • Save abhibeckert/dea1bda0a80bce67cdc6 to your computer and use it in GitHub Desktop.
Save abhibeckert/dea1bda0a80bce67cdc6 to your computer and use it in GitHub Desktop.
let stringToDraw = self.storage.createAttributedStringWithByteRange(self.line.range)
let typesetter: CTTypesetterRef = CTTypesetterCreateWithAttributedString(stringToDraw)
Result:
error: cannot convert the expression's type 'CTTypesetter!' to type 'CFAttributedString!'
let typesetter: CTTypesetterRef = CTTypesetterCreateWithAttributedString(stringToDraw)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment