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: Using Objective-C in Javascript - HELP !!!



On Nov 20, 2005, at 8:21 AM, Philipp Seibel wrote:

i made a subclass of WebView and tried to export a simple Objective- C Object to the scripting environment, by doing:

[windowScriptObject setValue:mySimpleObject forKey:@"simpleKey"];

The result is that the object is available on the scripting side, but no method works.
Even the WebScripting informal protocol methods are not called. Tried it with NSLog( @"test" ); inside the methods.


Does anyone know what i'm doing wrong ????

The most common problem is forgetting to implement isSelectorExcludedFromWebScript: -- for security reasons all methods are excluded by default.


    -- Darin

_______________________________________________
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


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.