• 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
Brushed Metal Window Dragging
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Brushed Metal Window Dragging


  • Subject: Brushed Metal Window Dragging
  • From: Michael Becker <email@hidden>
  • Date: Fri, 1 Oct 2004 15:32:45 +0200

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.

Kind regards,
Michael

_______________________________________________
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
  • Follow-Ups:
    • Re: Brushed Metal Window Dragging
      • From: stephane sudre <email@hidden>
    • Re: Brushed Metal Window Dragging
      • From: "M. Uli Kusterer" <email@hidden>
  • Prev by Date: Help assistant
  • Next by Date: Re: Brushed Metal Window Dragging
  • Previous by thread: Re: Help assistant
  • Next by thread: Re: Brushed Metal Window Dragging
  • Index(es):
    • Date
    • Thread