| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
Hi Michael. My comments are enclosed below.
I've been getting the error:
2005-12-07 16:19:18.587 DataTypeRoot01[4369] /SourceCache/ JavaScriptCore/JavaScriptCore-416.13/bindings/objc/ WebScriptObject.mm:211:[4369] JavaScript exception: Object (result of expression logMessage) does not allow calls.
I'm not sure what this means..why would it expect an object that does allow calls?
Anyway,
on the call:
var lang = logMessage(strLang);
In the calling class(which contains these delegates:
- (void)webView:(WebView *)sender windowScriptObjectAvailable: (WebScriptObject *)wso
+(NSString*)webScriptNameForSelector:(SEL)aSel
+(BOOL)isSelectorExcludedFromWebScript:(SEL)aSel
and
+(BOOL)isKeyExcludedFromWebScript:(const char*)k
in webScriptNameForSelector:
if (aSel == @selector(logMessage:)) { retval = @"logMessage"; }
in isSelectorExcludedFromWebScript:
if ( aSel == @selector(logMessage:)) { return NO; }
Can I access a selector without a namespace(such as this case)?
Cheers.
Geoff _______________________________________________ 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
| References: | |
| >Object does not allow calls (From: Michael Hanna <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
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.