Re: Problems creating an NSWindow in a Finder CFPlugIn
Re: Problems creating an NSWindow in a Finder CFPlugIn
- Subject: Re: Problems creating an NSWindow in a Finder CFPlugIn
- From: David Remahl <email@hidden>
- Date: Mon, 24 Jun 2002 05:16:46 +0200
This sample code may or may not be of interest:
http://developer.apple.com/samplecode/Sample_Code/Cocoa/SpellingChecker.htm
/ Sincerely, David Remahl
>
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.