• 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
Re: Problems creating an NSWindow in a Finder CFPlugIn
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Problems creating an NSWindow in a Finder CFPlugIn
      • From: Rishi Gupta <email@hidden>
References: 
 >Problems creating an NSWindow in a Finder CFPlugIn (From: Rishi Gupta <email@hidden>)

  • Prev by Date: Problems creating an NSWindow in a Finder CFPlugIn
  • Next by Date: Re: CDSA - they really don't want anyone to use it this bad?!?
  • Previous by thread: Problems creating an NSWindow in a Finder CFPlugIn
  • Next by thread: Re: Problems creating an NSWindow in a Finder CFPlugIn
  • Index(es):
    • Date
    • Thread