views:

25

answers:

1

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?

+2  A: 

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.

Peter Hosey
ok I have resolved this problem: and in safari4 , this method is worked: -(id)initWithFrame:pluginPackage:URL:baseURL:MIMEType:attributeKeys:attributeValues:loadManually:element:
jin