cocoasafarisimbl

Why instance of class WebBaseNetscapePluginView not respond selector in safari4?


I am developing a plug-in with Safari. I followed the adblocker sourcecode to swizzle the method:

-(id)initWithFrame:pluginPackage:URL:baseURL:MIMEType:attributeKeys:attributeValues:loadManually:DOMElement:

of class WebBaseNetscapePluginView but I found that didn't respond in Safari4. Why?


Solution

  • They either removed that method, changed its selector, or moved it to another class. They might have changed how the method works, or added functionality, and changed the selector accordingly.

    You should ask a new question with what you intend to do by swizzling this method, asking how you should do it. Swizzling this method clearly isn't it.