|
View:
New views
10 Messages
—
Rating Filter:
Alert me
|
|
|
How to develop the safari plugin ? 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!!! _______________________________________________ MacOSX-dev mailing list MacOSX-dev@... http://www.omnigroup.com/mailman/listinfo/macosx-dev |
|
|
Re: How to develop the safari plugin ?This is an open source example of a Safari "plugin" of the sort you
describe: http://code.google.com/p/safariblock/ Read through their code and try to see the strategies they use: http://code.google.com/p/safariblock/source/browse/#svn/trunk -Ian On Oct 26, 2009, at 9:39 PM, jin_xin0205@... 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!!! > _______________________________________________ > MacOSX-dev mailing list > MacOSX-dev@... > http://www.omnigroup.com/mailman/listinfo/macosx-dev _______________________________________________ MacOSX-dev mailing list MacOSX-dev@... http://www.omnigroup.com/mailman/listinfo/macosx-dev |
|
|
Re: How to develop the safari plugin ?On Oct 27, 2009, at 2:39, jin_xin0205@... 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 _______________________________________________ MacOSX-dev mailing list MacOSX-dev@... http://www.omnigroup.com/mailman/listinfo/macosx-dev |
|
|
|
|
|
[moderator] Re: How to develop the safari plugin ?Simbl is a third party hack.
and it isn’t appropriate for discussion on this list. On Oct 26, 2009, at 9:39 PM, jin_xin0205@... wrote: > Now I want to develop a safari plugin with SIMBL, _______________________________________________ MacOSX-dev mailing list MacOSX-dev@... http://www.omnigroup.com/mailman/listinfo/macosx-dev |
|
|
Re: [moderator] Re: How to develop the safari plugin ?On 28 Oct 2009, at 06:05, Scott Anguish wrote:
> Simbl is a third party hack. > > and it isn’t appropriate for discussion on this list. Why? There is nothing in the information at http://www.omnigroup.com/mailman/listinfo/macosx-dev that says that only Apple-supported APIs can be discussed on this list. In fact, it says "As long as your question is specific to Mac OS X development, you're in the right place.". I can understand why discussion of non-Apple-supported techniques is banned on lists hosted by Apple, but I do think that discussion of unsupported techniques can be valuable and this list seems like a good place to do it. I don't have a problem with people saying "you shouldn't do that" but I think that saying "you can't even discuss that" is taking things too far. Francis _______________________________________________ MacOSX-dev mailing list MacOSX-dev@... http://www.omnigroup.com/mailman/listinfo/macosx-dev |
|
|
|
|
|
|
|
|
Re: [moderator] Re: How to develop the safari plugin ?Matt
I apologized to the poster, and to Omni. it was an error. I’m sure you’re unfamiliar with them. There was zero need for you act like this about it. it didn’t involved you. On Oct 29, 2009, at 2:07 PM, Matt Neuburg wrote: > On Wed, 28 Oct 2009 02:05:12 -0400, Scott Anguish <scott@...> said: >> and it isn‚t appropriate for discussion on this list. > > What a fantastic superpower - moderate any mailing list! How can I get that? > (Currently my superpower is the ability to freeze things, and it doesn't > even work without a freezer.) m. _______________________________________________ MacOSX-dev mailing list MacOSX-dev@... http://www.omnigroup.com/mailman/listinfo/macosx-dev |
|
|
[moderator] Re: Carbon / Simbl / How to develop the safari plugin ?It's already been touched on, but to make it explicit (or more
explicit than any posts I've seen come across so far): this was a mistake on Scott's part. In addition to contributing to multiple lists (among other resources), Scott moderates cocoa-dev (and others?), which as an Apple list has stricter restrictions than we do, and he got a couple of messages crossed between lists. I got email from Scott yesterday apologizing after he realized his mistake, but I didn't address it with the list as I'm not the person who normally deals with moderation here and I hadn't determined the appropriate way to address it. (That person is in fact unavailable at the moment.) Without touching on whether or not you _should_ use Simbl or speculate on Apple's position on Carbon, it is at least generally acceptable to discuss those topics here on macosx-dev. (But obviously, do please try to keep it civil.) -- Andrew Abernathy The Omni Group On Oct 28, 2009, at 5:40 AM, Francis Devereux wrote: > On 28 Oct 2009, at 06:05, Scott Anguish wrote: > >> Simbl is a third party hack. >> >> and it isn’t appropriate for discussion on this list. > > Why? There is nothing in the information at http://www.omnigroup.com/mailman/listinfo/macosx-dev > that says that only Apple-supported APIs can be discussed on this > list. In fact, it says "As long as your question is specific to Mac > OS X development, you're in the right place.". > > I can understand why discussion of non-Apple-supported techniques is > banned on lists hosted by Apple, but I do think that discussion of > unsupported techniques can be valuable and this list seems like a > good place to do it. I don't have a problem with people saying "you > shouldn't do that" but I think that saying "you can't even discuss > that" is taking things too far. > > Francis > > _______________________________________________ > MacOSX-dev mailing list > MacOSX-dev@... > http://www.omnigroup.com/mailman/listinfo/macosx-dev > _______________________________________________ MacOSX-dev mailing list MacOSX-dev@... http://www.omnigroup.com/mailman/listinfo/macosx-dev |
| Free embeddable forum powered by Nabble | Forum Help |