JSValueRefAndContextRef?

6 views
Skip to first unread message

Gus Mueller

unread,
Dec 5, 2009, 3:16:31 PM12/5/09
to JSCocoa
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/

Gus Mueller

unread,
Dec 5, 2009, 3:29:30 PM12/5/09
to jsc...@googlegroups.com
Nevermind- seems that GitHub is flipping out a bit, and pulling the latest is pulling down a version from January of this year. Not sure what's going on, but looks like I got some old source :)

-gus
> --
> JSCocoa: http://inexdo.com/JSCocoa
> Source: http://github.com/parmanoir/jscocoa/tree/master
> Docs: http://code.google.com/p/jscocoa/
> Group: http://groups.google.com/group/jscocoa
> Unsubscribe: jscocoa+u...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages