• 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
NSView in textured window
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSView in textured window


  • Subject: NSView in textured window
  • From: Todd Heberlein <email@hidden>
  • Date: Mon, 7 Oct 2002 19:11:58 -0700

One of the textured windows' features I really like is being able to move the window by grabbing on any textured surface and not just the title bar, but I have found this behavior also flows through a custom NSView drawn on the window.

I have an NSView subclass in which the user clicks in the view and a small circle or square is drawn at that spot. I use it to generate data sets for testing machine leaning algorithms.

I have only overridden the mouseDown: method for input. But if you click, hold down the mouse, and then drag in the view, the whole window moves. This happens a lot accidentally when I am trying to enter a lot of sample points quickly. I do not get the same behavior for normal (un-textured) windows.

Any idea why clicking and dragging on my view moves the window? Have I done something wrong?

Just curious,

Todd
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: NSView in textured window
      • From: Finlay Dobbie <email@hidden>
  • Prev by Date: Re: Document-style drawing code
  • Next by Date: Embarrassing NSURL problem
  • Previous by thread: Re: Can I get AppKit to draw this faster ?
  • Next by thread: Re: NSView in textured window
  • Index(es):
    • Date
    • Thread