Re: Quartz composer drag and drop problems
Re: Quartz composer drag and drop problems
- Subject: Re: Quartz composer drag and drop problems
- From: Aaron Tuller <email@hidden>
- Date: Mon, 16 Jan 2006 16:40:27 -0800
Hi Pablo, add this method to your QCView
subclass, ping me off list if you need more:
- (NSView *)hitTest:(NSPoint)aPoint
{
NSView *s = [super hitTest:aPoint];
if (s)
return self;
else
return nil;
}
-aaron
At 12:35 AM +0000 1/17/06, Pablo Pons Bordes wrote:
Thanks to respond to my question, Wen I say
nothing happen I said that the events are not
called, i tried your solution but still do the
same it doesn't respond to the event (the NSLog
sentence does not called or triger) i don't
understand why because if I not wrong its supose
that i rewrite the mouse down event so each time
some one press in the view it's suppose that the
event have to be triggered
not?.
if there someone who now why the event is not
call, it's like other is "getting" the event
first.
thanks
Pablo
El 16/01/2006, a las 20:59, Guy English escribió:
Hi,
When you say nothing happens what do you mean? Do you get the
"mouse Dragged" message logged? Many Cocoa views go into a tight loop
on a mouse down event waiting for a mouse up - it's in this loop that
they handle things like starting drags and tracking if the mouse if
over a button, etc. I haven't tried it but this is likely what the
QCView is doing. Since it's possible to drive the animation from mouse
input I imagine they go modal on a mouse down. Test it with this:
- (void) mouseDown: (NSEvent*) theEvent
{
NSLog( @"%s", _cmd );
[super mouseDown: theEvent];
}
you'll get 'mouseDown:' output if that's the case. If it is then
you've got a couple of choices - either enter your own small modal
loop or just return without calling super.
Good luck,
Guy
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden