• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to extend Safari -> Context-Menu, Plugin, traps
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to extend Safari -> Context-Menu, Plugin, traps


  • Subject: Re: How to extend Safari -> Context-Menu, Plugin, traps
  • From: Frederick Cheung <email@hidden>
  • Date: Sat, 25 Sep 2004 03:29:29 +0200


On 25 Sep 2004, at 02:17, Ben Dougall wrote:


On Friday, September 24, 2004, at 10:16 am, Stefan Pantke wrote:

Hi,

currently, I'm searching a method to extend Safari, e.g. pass the
selected text or the URL under the mouse pointer to my app.
Or hook my app in some way into Safari.

Do I need to write a plugin? Maybe, but I failed to find plugin coding
docs on Apple's website.

iGetter does this. it's not a browser plugin that it uses to do it, but a normal contextual menu -- and it just only becomes useable/visible from within a browser. it's done in carbon and uses apple events to communicate from the cm to app.


You cannot actually do that with a contextual menu plugin, although that's supposed to be the point of contextual menu plugins, because safari doesn't provide any context to the plugin, where it should really be providing the url that you clicked on. iGetter installs an Input Manger which is probably how it makes things work. One could probably find out what it does by class dumping the plugin.

Fred


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Re: How to extend Safari -> Context-Menu, Plugin, traps (From: Ben Dougall <email@hidden>)

  • Prev by Date: Re: How to extend Safari -> Context-Menu, Plugin, traps
  • Next by Date: Multiple Inheritence (Was: Is _objc_flush_caches_(Class) necessary to swizzle methods?)
  • Previous by thread: Re: How to extend Safari -> Context-Menu, Plugin, traps
  • Next by thread: Regarding Font style in an NSTextView
  • Index(es):
    • Date
    • Thread