at temp URL when didFinishReceiving - (void)session:didStartReceivingResourceWithName:fromPeer:withProgress: - (void)session:didFinishReceivingResourceWithName:atURL:withError: // provided an NSInputStream to read from - (void)session:didReceiveStream:withName:fromPeer:
-> Objective-C • Objective-C interface to procedural JavaScriptCore API • Real men don’t need documentation…header files & WWDC session best resources • Is the same as the WebKit JS engine (-Nitro/JIT)
• Thread-safe via locking at JSVirtualMachine granularity • An app can have multiple JSContext in a single JSVirtualMachine, and multiple JSVirtualMachine
aware of how to connect WebKit debugger • Pay special attention to retain cycles (JSManagedValue can be used to break cycle) • for…in doesn’t work on NSArray (JS limitation of Prototype?) • Occasionally lose the JSExports of an object which a JSExport property of another object (JSC GC bug?)