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 10:34:15 -0500
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?
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.
-Michael
On May 6, 2008, at 10:14 AM, I. Savant wrote:
On Tue, May 6, 2008 at 10:44 AM, Michael Gardner
<email@hidden> wrote:
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.
At this point, I think it's time to post your relevant code.
Again, I have never run across the problem you've described -- it
should work as far as I know. I'll assume you've verified that your
own init method (and the associated call to is
-registerForDraggedTypes:) is actually called as expected (ie, you've
stepped through it with the debugger and it is in fact called).
--
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