I'm using the excellent NSOutlineView subclass PXSourceList in one of my 
applications. I'm trying to implement drag and drop to my PXSourceList 
instance. I have:
connected both delegate and data source outlets in IB to my controller
in awakeFromNib in the controller, set self as the delegate and data source
in awakeFromNib in the controller, registered for dragged types
in the controller, implemented the requisite writeItems: validateDrop: 
acceptDrop: and namesOfPromisedFilesDroppedAtDestination: methods and declared 
them in the controller's .h file
For some reason, the drag and drop methods implemented in (4) are not firing at 
all. I've tried:
Placing log statements in the drag and drop data source methods - they never 
get called.
Putting a log statement in one of the other data source method that logs the 
registeredDraggedTypes of the PXSourceList instance - it always returns the 
proper drag types assigned in awakeFromNib.
Taking the PXSourceList view instance and unembedding it from all containing 
views except the NSWindow instance - no luck there either.
Copy-pasting data source code from my application to the sample app that comes 
with PXSourceList - it all works without modification.
Copy-pasting the working code from the example application into the SK source - 
it doesn't work.

So essentially I'm in a spot where all data source methods get called except 
the drag-and-drop methods. It's behaving like I haven't registered for dragged 
types, but 1) I know I have and 2) the instance responds that it is registered 
for the dragged types that I set.

Any ideas?

---
Michael A. LaMorte
Mac Developer
Minder Softworks

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to