Re: how NOT to drag metal window by nsview
Re: how NOT to drag metal window by nsview
- Subject: Re: how NOT to drag metal window by nsview
- From: "Chase" <email@hidden>
- Date: Tue, 12 Jun 2007 20:11:41 +0000
thanks. that did it. i can't believe i mised that in the documentation for nsview.
anyway... thanks.
- chase
On June 12, 2007, Dorian Johnson wrote:
> On Jun 12, 2007, at 2:50 PM, Chase wrote:
>
> >
> > i've got a textured window with an nsview in it (**not** the
> > context view of the window... just a regular nsview). when i drag
> > on the metal background it moves the window, which is expected and
> > that's the behavior i want. but clicking/dragging in the nsview
> > also moves the window. how can i disable this. thanks.
> >
> > - chase
>
> Look at -[NSView mouseDownCanMoveWindow]. The docs say "By default,
> this method returns NO if the view is opaque; otherwise, it returns
> YES." Either set your view to be opaque or use a custom class and
> override mouseDownCanMoveWindow to return NO.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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