Christian Tietze

  • Posts
  • Books
  • Apps
  • Work With Me
  • Contact

Making Your App Extensible with JavaScriptCore (CocoaHeads Presentation)

Dec 13th, 2022

Teaser image

I recently went to CocoaHeads Aachen and was asked if I happened to have a topic to talk about. Of course I did :) Designing plugins for The Archive took up a lot of my time this year. So this presentation is about the basic design of the plugin system as registered inputs/outputs.

Continue reading …

  • ∞ Permalink
  • • Comments
  • • Tags:
    • javascriptcore
    • plugin

Patching console.log into Swift's JavaScriptCore JSContext

Jun 6th, 2020

By default, you cannot print to the Xcode console from within a JavaScriptCore-evaluated script. print, echo, console.log – nothing of the like is available. Caveman debugging is tremendously useful, though, so we all know that we want to print from the JavaScript we evaluat, right?

Continue reading …

  • ∞ Permalink
  • • Comments
  • • Tags:
    • javascriptcore
    • debugging

Add Subscripts to JavaScriptCore Types in Swift

Jun 6th, 2020

The JavaScriptCore framework was apparently very convenient to use in Objective-C times: you could simply use subscripts to change objects inside the context, like this: In Swift, tutorials you find on the web stick to the longer version that underlies the subscript convention here: method calls to -objectForKeyedSubscript and -setObject:forKeyedSubscript:.

Continue reading …

  • ∞ Permalink
  • • Comments
  • • Tags:
    • javascriptcore

Contact • Newsletter • blog post feed
Become an affiliate • Legal Information • Twitter

Except where otherwise noted, content on this site is licensed CC BY-SA 4.0.