Mailing Lists: Apple Mailing Lists

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

Object does not allow calls



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

contents of logMessage:

- (NSString *) logMessage:(NSString *)str {
	NSLog(@"JavaScript says: %@", str);
	return str;
}

any help would be appreciated.
Michael

--
Michael Hanna
email@hidden
iChat: michaelkhanna(AIM)



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