Using Objective C in a Finder "Contextual Menu plug-in"
Using Objective C in a Finder "Contextual Menu plug-in"
- Subject: Using Objective C in a Finder "Contextual Menu plug-in"
- From: Rob Crawford <email@hidden>
- Date: Sun, 21 May 2006 15:52:55 -0400
Is there a way to use objective-c in a Finder Contextual Menu plug-
in, I know they are written in Carbon, and I have the base of my
Contextual Menu plug-in working, after adding some objective-c to the
mix, the plug-in still works but causes the Finder to crash after the
menu is released, not even on the menus I have added. It looks like
it is getting an exception. Crash log below. I have tried to create a
NSAutoreleasePool in a wrapper function that makes the objective-c
calls. I want to reuse the code from the my app so I don't need to
rewrite it. Anyone have any ideas how this could be done?
libobjc.A.dylib 0x90a4e387 objc_msgSend + 23
1 com.apple.HIToolbox 0x9313b729
TPluginCommand::~TPluginCommand [in-charge]() + 25
2 com.apple.HIToolbox 0x92fdc826
TPluginCommandList::~TPluginCommandList [in-charge]() + 66
3 com.apple.HIToolbox 0x92fdc826
TPluginCommandList::~TPluginCommandList [in-charge]() + 66
4 com.apple.HIToolbox 0x92fdc67a
ContextualMenuReleaseItemsTimer(__EventLoopTimer*, void*) + 102
5 com.apple.HIToolbox 0x92f307ce TimerVector + 31
6 com.apple.CoreFoundation 0x90823bc9 CFRunLoopRunSpecific +
3341
_______________________________________________
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