I am trying to implement a delegate for an NSWebView, however when I run it, I get this error:
TypeError: Error when calling the metaclass bases
class Delegate does not correctly implement protocol WebScripting: the signature for method isSelectorExcludedFromWebScript: is c@:: instead of Z@::
Where can I find documentation for 'c@::', as opposed to 'Z@::', and what might be wrong with my code?
The method in question is as follows:
def isSelectorExcludedFromWebScript_(self, sel):
return True
Specifically, the NSWebView is documented at: https://developer.apple.com/library/mac/documentation/Cocoa/Reference/WebKit/Classes/WebView_Class/index.html (But I suspect that Apple will move this URL in future)
More precisely, the delegate's informal protocol I am attempting to use is documented here: https://developer.apple.com/library/mac/documentation/Cocoa/Reference/WebKit/Protocols/WebFrameLoadDelegate_Protocol/index.html#//apple_ref/doc/uid/TP40003828 and https://developer.apple.com/library/mac/documentation/Cocoa/Reference/WebKit/Protocols/WebScripting_Protocol/index.html#//apple_ref/doc/uid/TP40001562
The only documentation for objc.signature I have found is at: http://pythonhosted.org/pyobjc/api/module-objc.html