• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: how NOT to drag metal window by nsview
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: how NOT to drag metal window by nsview
  • Next by Date: How do I draw to fullscreen on a secondary monitor?
  • Previous by thread: Re: how NOT to drag metal window by nsview
  • Next by thread: How do I draw to fullscreen on a secondary monitor?
  • Index(es):
    • Date
    • Thread