I just updated to the latest JSCocoa, and saw that evalJSString: now returns a "JSValueRefAndContextRef", which is just a struct of this:
struct JSValueRefAndContextRef {
JSValueRef value;
JSContextRef ctx;
};
Thsi call used to return a JSValueRef. I don't quite understand why there was the change... what's the thinking behind this? I'm not criticizing, I'm just trying to understand. If the caller wants the context, why not just call [controller ctx]?
-gus
--
August 'Gus' Mueller
Flying Meat Inc.
http://flyingmeat.com/