Re: -draggingEntered: never gets called [solved?]
Re: -draggingEntered: never gets called [solved?]
- Subject: Re: -draggingEntered: never gets called [solved?]
- From: "I. Savant" <email@hidden>
- Date: Tue, 6 May 2008 10:34:56 -0400
> 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