• 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: -draggingEntered: never gets called [solved?]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >-draggingEntered: never gets called (From: Michael Gardner <email@hidden>)
 >Re: -draggingEntered: never gets called [solved?] (From: Michael Gardner <email@hidden>)

  • Prev by Date: Disable HUD in WebKit pdf display
  • Next by Date: Re: Blob Detection with Core Image
  • Previous by thread: Re: -draggingEntered: never gets called [solved?]
  • Next by thread: Re: -draggingEntered: never gets called [SOLVED]
  • Index(es):
    • Date
    • Thread