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

Re: NSView in textured window


  • Subject: Re: NSView in textured window
  • From: Todd Heberlein <email@hidden>
  • Date: Tue, 8 Oct 2002 15:37:39 -0700

On Tuesday, October 8, 2002, at 01:13 PM, Finlay Dobbie wrote:

On Tuesday, October 8, 2002, at 03:11 am, Todd Heberlein wrote:

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

Read the 10.2 AppKit release notes. It's default behaviour, unless you override it.

Got it. Thanks!

In case anyone is interested, here is the quote from the release notes:

New since the WWDC update of 10.2, NSView now has a new method which allows a view to specify whether or not it should be treated as blocking window moving for a mouseDown in its bounds. This only applies to views in windows that return YES for -isMovableByWindowBackground. The default implementation returns YES if the view is not opaque and NO otherwise. NSControl and other standard views that implement mouseDown: return NO for this method. A custom view should implement this method to return NO if it wants to disable window moving for a mouseDown: within the view bounds. This is an addition to NSView.h:

- (BOOL)mouseDownCanMoveWindow;


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.

References: 
 >Re: NSView in textured window (From: Finlay Dobbie <email@hidden>)

  • Prev by Date: Re: Can I get AppKit to draw this faster ?
  • Next by Date: Document dirty?
  • Previous by thread: Re: NSView in textured window
  • Next by thread: Embarrassing NSURL problem
  • Index(es):
    • Date
    • Thread