• 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
Contextual Menu Plugins
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Contextual Menu Plugins


  • Subject: Contextual Menu Plugins
  • From: Steve Gehrman <email@hidden>
  • Date: Mon, 13 May 2002 18:31:13 -0700

Cocoa is really great. It automatically loads contextual menu plugins and adds the new items to my contextual menus. The problem is that I need to be able to set the AEDesc* inContext parameter before it passes it to the plugin through examineContext.

Currently Cocoa sets the AEDesc descriptorType == 'null' and calls the plugin.

Has anyone solved this problem? Is there a secret API to do this?

Here's the stack trace:

_SNAXCMPlugInExamineContext receives a 'null' AEDesc. I need a way on Cocoa to set this AEDesc before it gets called.

_SNAXCMPlugInExamineContext (SNAXFinderCM.m:322) << -- here's the cmm plugin
_ExamineContext__21TContextualMenuPluginPC6AEDescR18TPluginCommandListUlRUc
_ExamineContext__25TContextualMenuPluginListPC6AEDescR18TPluginCommandListl
_ContextualMenuSelect
__NSPopUpCarbonMenu
-[NSCarbonMenuImpl _popUpContextMenu:withEvent:forView:]
-[NSMenu _popUpContextMenu:withEvent:forView:]
-[NSMenu _popUpMenuWithEvent:forView:]
-[NSView rightMouseDown:]
-[NSControl _rightMouseUpOrDown:]
-[NSControl rightMouseDown:]
-[NSWindow sendEvent:]
-[CTFastResizeWindow sendEvent:]
-[NSApplication sendEvent:]
-[CTApplication sendEvent:]
-[NSApplication run]
_NSApplicationMain
_main
__start
start

Thanks,

-steve
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: Query: IBOutlet fails if setter method of same name exists
  • Next by Date: Re: Document with multiple windows
  • Previous by thread: silly problem???
  • Next by thread: dealing with NSURLPasteboardType
  • Index(es):
    • Date
    • Thread