Problems creating an NSWindow in a Finder CFPlugIn
Problems creating an NSWindow in a Finder CFPlugIn
- Subject: Problems creating an NSWindow in a Finder CFPlugIn
- From: Rishi Gupta <email@hidden>
- Date: Sun, 23 Jun 2002 22:58:45 -0400
I'm currently working on a contextual menu plug-in intended to be used
in the Finder. Right now, what I'm doing is every time one of my
commands is selected, I send an Apple Event to a background Cocoa app I
have running. All of the UI is handled there. This works well enough,
but I'd like to roll the functionality into the plug-in itself and
eliminate the Apple Events.
Unfortunately, every time I try and create an NSWindow (when the
contextual menu plug-in loaded in the Finder), I get a bunch of error
messages in the console such as:
kCGErrorInvalidConnection : CGSGetCurrentCursorLocation: Invalid
connection
Jun 23 22:37:05 localhost
/System/Library/CoreServices/Finder.app/Contents/MacOS/Finder:
kCGErrorInvalidConnection : CGSGetCurrentCursorLocation: Invalid
connection
Jun 23 22:37:05 localhost
/System/Library/CoreServices/Finder.app/Contents/MacOS/Finder:
kCGErrorInvalidConnection : CGSNewWindow: Invalid connection
However, when the plug-in is called from a Cocoa app like Mail or
OmniWeb, the NSWindow is created fine. What must I do to get this
working properly in Carbon apps? Or is it even possible?
Thanks.
_______________________________________________
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.