• 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: Dorian Johnson <email@hidden>
  • Date: Tue, 12 Jun 2007 15:03:52 -0500

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


References: 
 >how NOT to drag metal window by nsview (From: "Chase" <email@hidden>)

  • Prev by Date: how NOT to drag metal window by nsview
  • Next by Date: Re: how NOT to drag metal window by nsview
  • Previous by thread: how NOT to drag metal window by nsview
  • Next by thread: Re: how NOT to drag metal window by nsview
  • Index(es):
    • Date
    • Thread