[webkit-dev] JSObjectMakeFunction question

Darin Adler darin at apple.com
Mon Jun 1 08:55:37 PDT 2009


On Jun 1, 2009, at 8:29 AM, Jack Wootton wrote:

> It seems some casting is required for this though?

Yes, conversion to JSObjectRef is needed, although you don’t have to  
do any casting.

You can call JSValueToObject to turn the value into an object, making  
the appropriate object wrapper for non-object types.

     -- Darin



More information about the webkit-dev mailing list