Re: -draggingEntered: never gets called [solved?]
Re: -draggingEntered: never gets called [solved?]
- Subject: Re: -draggingEntered: never gets called [solved?]
- From: Andy Lee <email@hidden>
- Date: Tue, 6 May 2008 10:38:57 -0400
I haven't been following this thread and I'm not sure this would make
a difference, but do you really mean -init:, or -initWithFrame:?
--Andy
On May 6, 2008, at 10:27 AM, Michael Gardner wrote:
With help from Stéphane Sudre, I found that calling -
registerForDraggedTypes: somewhere outside the destination's -init:
method solves the issue. Can anyone shed light on why this would be?
My views are created programatically rather than loaded from a .nib,
so there shouldn't be any interference from that side of things. As
far as I can tell, this looks to be a bug in Cocoa's DnD code, or at
least a caveat that should be mentioned in the documentation...
-Michael
On May 5, 2008, at 4:02 PM, Michael Gardner wrote:
I'm trying to implement drag & drop in an NSView subclass. I made
sure that the source returns NSDragOperationMove in -
draggingSourceOperationMaskForLocal:, and that the destination
calls -registerForDraggedTypes: with the same (custom) type that
the source uses for the drag operation.
The drag operation starts properly, but the destination's -
draggingEntered: method never gets called, no matter what I do.
What could cause this? Does it matter if the source and destination
are the same object?
-Michael
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden