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

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.

  • Follow-Ups:
    • Re: Problems creating an NSWindow in a Finder CFPlugIn
      • From: David Remahl <email@hidden>
  • Prev by Date: Re: CoreGraphics/Quickdraw Bug in OS X?
  • Next by Date: Re: Problems creating an NSWindow in a Finder CFPlugIn
  • Previous by thread: Re: CoreGraphics/Quickdraw Bug in OS X?
  • Next by thread: Re: Problems creating an NSWindow in a Finder CFPlugIn
  • Index(es):
    • Date
    • Thread