Re: -draggingEntered: never gets called [solved?]
Re: -draggingEntered: never gets called [solved?]
- Subject: Re: -draggingEntered: never gets called [solved?]
- From: Michael Gardner <email@hidden>
- Date: Tue, 6 May 2008 09:44:31 -0500
My actual init method has a different signature, and calls -
initWithFrame: on its superclass. I was trying to abstract away extra
details, but I shouldn't have made it look like an actual method
signature. Sorry about that.
-Michael
On May 6, 2008, at 9:34 AM, I. Savant 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?
I've never personally experienced the problem you're describing, but
if you're literally calling this from an init method with this
signature: - (id)init ... then "You're Doing It Wrong". Views and
their subclasses use -initWithFrame: as their designated initializer.
If your call to -registerForDraggedTypes: is in an -init method, it
won't get called unless you're creating your view with that method ...
which you shouldn't do because it's a view and "strange things will
happen".
--
I.S.
_______________________________________________
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