how to get the pic or flash url of Safari through the SIMBL plugin?

Discussion in 'Mac Programming' started by xiaohuli170, Oct 22, 2009.

  1. macrumors newbie

    Jan 13, 2009
    Hey , I have learned some knowledge of how to develop a plugin of safari , but when I followed the document: CocoaReverseEngineering . I didn't know how to implement the reverseEngineering, but I implement the methods add a menu at the end of safari menubar when safari in it's runtime. just like safaristand. I implement the method :

    + (void) load


    MySamplePlugin* plugin = [MySamplePlugin sharedInstance];

    // ... do whatever

    NSLog(@"MySamplePlugin installed");

    but In the slash : do whatever, I want to get some safari webpage DOM objects , just like pic and flash or others url. but I don't know how to do , I must to be implemented the ReverseEngineering or when I load my plugin with SIMBL I only get what I want through my plugin? Can someone give some advice or samplecode, Thank you very much!!!


Share This Page