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 11:47:51 -0400
On Tue, May 6, 2008 at 11:34 AM, Michael Gardner <email@hidden> wrote:
> Upon further investigation, I've found that if I call
> -registerForDraggedTypes: before adding the view to its parent window with
> -setContentView:, I never get the -draggingEntered: messages. If I do so
> afterwards, everything works properly. Is this expected behavior?
Interesting ... have you placed the call in the view's
-viewDidMoveToSuperview to get this to work?
> As for posting the code, I'm trying to put together a minimal test case,
> but so far I haven't been able to duplicate the problem. There must be some
> relevant difference between the test case and my actual code, but I haven't
> been able to figure out what that is yet.
One thing that occurs to me is to check where you're defining your
custom type. Does it exist before you're registering it or vice-versa?
:-)
--
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