CMM CFPlugin, newer, simpler sample?
CMM CFPlugin, newer, simpler sample?
- Subject: CMM CFPlugin, newer, simpler sample?
- From: Christopher Kempke <email@hidden>
- Date: Sun, 18 Sep 2005 22:10:08 -0700
I want to create a simple context menu for files in the Finder. I'm
pretty sure that what I want to make is a "Contextual Menu" plugin,
and I downloaded the SampleCMPlugin sample.
The main file is 772 lines long, written for some 2001-era version of
Codewarrior, and apparently commented for someone who already knows
what they're doing. It's full of CFM-Mach-O glue code, comments
about Codewarrior's headers being out of date, and other miscellany
that I don't think apply any more. I don't know much about
CFPlugins, and the CMM stuff is very, very sparsely documented, or
else my searches haven't been right. One of the files I looked at
had what are clearly Win32 types scattered throughout (HRESULT,
DWORD, etc), but claimed it was Carbon. I believe that time has
marched on and left this behind :-)
Is there a better, perhaps far more modern example of this code
around? Perhaps just an XCode-based sample plugin that adds a simple
"beep" function to text files or somesuch?
For the record, I'm struggling with the setup of the plugin, the COM-
like stuff and info.plist mechanations. Once I get down to actually
implementing the three CMM functions (ExamineContext/HandleSelection/
PostMenuCleanup), I'll be fine. I just can't figure out what I need
to do to create this dohickie and get the functions identified and
called by the system (preferably from Carbon C++).
--Chris
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden