Re: How to develop the safari plugin ?

John Joyce <[email protected]>
Newsgroups gmane.comp.macosx.devel
Message-ID <[email protected]>
		
On Oct 27, 2009, at 2:00 PM, [email protected] wrote:

>>
>> &nbsp;Now&nbsp; I want to develop a safari plugin with SIMBL, And I  
>> think the
>> steps were : a) generate a bundle loaded the SIMBL project , and
>> implement a method&nbsp; - load for the loaded method of plugin ,  
>> and I
>> have implemented it . b) class-dump some methods of safari  
>> framework ,
>> and generate a headfile. c) add the headfile and override those
>> methods and get some DOM objects .&nbsp; My plugin will attend to  
>> get the
>> flash URL with safari page when it lanuched. But Now I have some
>> problems : one is Which framework and class I can select to get the
>> point . I use the command-line utility : class- dump and use the
>> command :
>> /Applications/class-dump -e /System/Library/Frameworks/
>> WebKit.framework/Versions/A/WebKit > WebKit.h
>> But I didn't generate a file with WebKit.h. And I used another
>> command:
>> /Applications/class-dump -H /System/Library/Frameworks/
>> WebKit.framework/Versions/A/WebKit > WebKit.h
>> But I have few hundreds of files included the file WebKit.h , But it
>> is empty. I still didn't know which methods or files I can select?
>> Tow is when I generate a headfile , I will add it in my project , and
>> How to use it for posing or method swizzing ? I really the greenhand
>> of class-dump and developping SIMBL plugin , can Someone give me some
>> code demo&nbsp; or advice ? Thank you very much!!!
>
> You don't need class-dump, WebKit as well as its plugin architecture  
> are fully documented in the Xcode documentation. Even the  
> implementation of WebKit is available because it's open source,  
> however there's almost certainly no need to dive into that.
>
> Christiaan
>
SIMBL should no longer be used.
SIMBL uses input managers. This is no longer supported in Snow Leopard.
Reason: SIMBL plugins cause a lot of pain to supporting Safari because  
they were too hidden and frequently caused problems with Safari updates.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.