Re: NSView in textured window
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.