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: bridged Cocoa object's method is undefined?



Did you implement +webScriptNameForSelector, +isSelectorExcludedFromWebScript, +isKeyExcludedFromWebScript ?

here are some examples.

If you're using Tiger, take a look at the source code for the Fortune Dashboard widget. It is very helpful.

Also, I've had trouble with window.alert() with WebViews. Try document.write()

// isSelectorExcludedFromWebScript
//
// This method lets you filter which methods in your plugin are accessible
// to the JavaScript side.
+(BOOL)isSelectorExcludedFromWebScript:(SEL)aSel {
if ( aSel == @selector(logMessage:)) {
return NO;
}
return YES;
}


[this an abridged version sent to the list because of the 12K limitation]

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
References: 
 >bridged Cocoa object's method is undefined? (From: Troy Dawson <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.