• 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
Drag and Drop: Cocoa window in Carbon app...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Drag and Drop: Cocoa window in Carbon app...


  • Subject: Drag and Drop: Cocoa window in Carbon app...
  • From: Allan Dushan <email@hidden>
  • Date: Thu, 19 Feb 2004 15:19:10 -0800

I have a Carbon app that uses a Cocoa bundle. The Carbon app loads the
Cocoa bundle and gets a function pointer to the initialization function
for the Cocoa bundle. Then through the initialization function the
Cocoa bundle displays a Cocoa window with an NSTableView in it.

If I try to drag a file from the finder to the NSTableView and release
the mouse, the file just snaps back. The NSTableView is registered to
receive NSFileContentsPboardType, but the
validateDrop:proposedRow:proposedDropOperation never gets called.

If I load this Cocoa bundle from within a Cocoa app, it works perfect.

I have tried overriding the draggingSourceOperationMaskForLocal:
method, but the method does not get called when I am in the debugger.

Any suggestions would greatly be appreciated.

Allan
_______________________________________________
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: Drag and Drop: Cocoa window in Carbon app...
      • From: Jérome Foucher <email@hidden>
  • Prev by Date: IB Hassle: NSButton Over NSQuickDrawView
  • Next by Date: Re: Transparent Windows WAS: (no subject)
  • Previous by thread: Re: IB Hassle: NSButton Over NSQuickDrawView
  • Next by thread: Re: Drag and Drop: Cocoa window in Carbon app...
  • Index(es):
    • Date
    • Thread