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




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

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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>)



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.