Re: How to develop the safari plugin ?
Christiaan Hofman <[email protected]>
| Newsgroups | gmane.comp.macosx.devel |
|---|---|
| Message-ID | <[email protected]> |
On Oct 27, 2009, at 2:39, [email protected] wrote: > Now 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 - 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 . 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 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