• 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: System contextual menus
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: System contextual menus


  • Subject: Re: System contextual menus
  • From: Ondra Cada <email@hidden>
  • Date: Thu, 31 Jan 2002 17:26:49 +0100

Eric,

>>>>>> Eric Schlegel (ES) wrote at Thu, 31 Jan 2002 07:27:39 -0800:
ES> >The thing is that there is *NO* system-level API related to this; there
ES> >perhaps is a *FINDER* API which supports that, but that's all.
ES>
ES> Actually, that's not true. There is a well-documented interface to the
ES> Contextual Menu modules that is described in HIToolbox/Menus.h. The
ES> Carbon Menu Manager implements code which looks in the standard
ES> locations for Contextual Menu plugins, uses CFPlugin to load them, and
ES> calls the plugin using the documented interface. It would be non-trivial
ES> but certainly possible to do the same in a Cocoa application in order to
ES> get the standard modules to add their commands to a specified NSMenu.
ES> This is not a Finder-specific API.

So it is a Carbon-specific API. Any way, it would be *QUITE* *BAD* to
exploit it instead of the file Services, which are *THE* system-wide API for
providing file-based services in OSX. Just like other Services are *THE*
system-wide API for prividing text-, graphics-, sound-, table-, and actually
anything-based services.

Just again, *if* you want to have a contextual menu of external file-based
services, the only reasonable way is to "copy" appropriate Services from the
Services menu there.
---
Ondra Cada
OCSoftware: email@hidden http://www.ocs.cz
2K Development: email@hidden http://www.2kdevelopment.cz
private email@hidden http://www.ocs.cz/oc


References: 
 >Re: System contextual menus (From: Eric Schlegel <email@hidden>)

  • Prev by Date: Re: Hiding Package Contents
  • Next by Date: Re: Hiding Package Contents
  • Previous by thread: Re: System contextual menus
  • Next by thread: Re: System contextual menus
  • Index(es):
    • Date
    • Thread