More info - drag and drop could be the issue....
More info - drag and drop could be the issue....
- Subject: More info - drag and drop could be the issue....
- From: Christian Graus <email@hidden>
- Date: Fri, 6 Feb 2009 13:44:41 +1100
So, it seems that if I set my class to be it's own delegate, then the drag
and drop code that exists in the containing class, does a perform drop when
I drag out a box in my IKImageView. My breakpoints are not working properly
tho ( which often happens to me in XCode ). So,
- (BOOL)performDragOperation:(id <NSDraggingInfo>)sender
{
#ifdef DEBUG
{
NSLog(@"entering performDragOperation");
}
#endif
if (sender == self)
return;
is in my class that contains the IKImageView derived class. The check if
sender == self does not work ( does anyone have any idea how to do this ? )
and the breakpoint I set at this line, fires when I do a real drag and drop,
but not when I drag and let go all within the IKImageView. Instead, this
code is running and reloading my image ( I'm not sure where from ). I can
set a breakpoint, but it will stop inside the image load code, and while I
am looking at it, the stack overflows and the app crashs. So, I am
expecting that the drop is occuring over and over, when I don't want it to
occur at all when I click, drag and let got of the mouse, all in the same
window. I assume I am doing something stupid ?
I also tried to make this parent class register for events, but that
actually never fired anything.
Christian
_______________________________________________
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