Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: JSContextRef question



Hi, Mark

thank you very much for your answer

indeed WebFrame.h has use that method
but documentation doesn't have it
should I report a bug against documentation?

thanks again


On Apr 30, 2008, at 8:47 PM, Mark Rowe wrote:


On 30/04/2008, at 17:33, Dmitry Markman wrote:

Hi
is it possible to get JSContextRef
of the loaded page?
I know I can get windowScriptObject
but what about JSContextRef?

I'd like to use JSObjectMakeFunctionWithCallback
to bind C function with JS one

You can use -[WebFrame globalContext] to retrieve the JSGlobalContextRef that is associated with a WebFrame. See <http://trac.webkit.org/browser/trunk/WebKit/mac/WebView/WebFrame.h#L208 >


- Mark


Dmitry Markman

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webkitsdk-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webkitsdk-dev/email@hidden

This email sent to email@hidden
References: 
 >JSContextRef question (From: Dmitry Markman <email@hidden>)
 >Re: JSContextRef question (From: Mark Rowe <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.