Re: Brushed Metal Window Dragging
Re: Brushed Metal Window Dragging
- Subject: Re: Brushed Metal Window Dragging
- From: stephane sudre <email@hidden>
- Date: Fri, 1 Oct 2004 16:37:47 +0200
On Oct 1, 2004, at 3:32 PM, Michael Becker wrote:
Hello!
I have a custom view in my application in which I want the user to
drag an image around. The window is brushed metal, so everytime I
click and drag the mouse in the view, the entire window moves.
I tried putting up a modal event loop (as suggested in the
documentation) which did not work. I also tried to setNextResponder to
NULL, but most probably I have not yet fully understood the responder
chain concept.
Nevertheless, I achieved the desired behavior by putting the custom
view inside a scroll view and hiding the scrollbars. But that doesn't
seem like the "right" way. So what do I have to do in order to keep
the window from being dragged? It feels like I should catch the mouse
event, but I don't know how to do that.
mouseDownCanMoveWindow
- (BOOL)mouseDownCanMoveWindow
Returns YES if the receiver does not need to handle a mouse down and
can pass it through to the view; NO if it needs to handle the mouse
down. This allows iApp-type applications to properly determine the
region by which a window can be moved.
Availability
Available in Mac OS X v10.2 and later.
But the behavior you're describing is quite strange. Do you override
mouseDown in your custom view?
_______________________________________________
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