Re: First click in custom window?
Re: First click in custom window?
- Subject: Re: First click in custom window?
- From: Albert Andersen <email@hidden>
- Date: Tue, 07 Nov 2006 16:52:29 -0800
On Tuesday, November 07, 2006, at 04:29PM, "Erik Buck" <email@hidden> wrote:
>Maybe ...
>
>acceptsFirstMouse:
>Overridden by subclasses to return YES if the receiver should be sent
>a mouseDown: message for an initial mouse-down event, NO if not.
>
>- (BOOL)acceptsFirstMouse:(NSEvent *)theEvent
Yep, that did it for the main window. Thanks! I was looking for properties of the window, but I guess the content view needs to handle it by implementing this method.
The improper dragging behavior in the TableView is still happening, though. I tried subclassing NSTableView to implement/override the acceptsFirstMouse method, and it is being called on the first mouse, and the first mouse click is calling the tableView's mouseDown method, but dragging moves the window instead of dragging a selection in the TableView. I've tried making the TableView the first responder when it accepts the FirstMouse, but that's not making it behave correctly.
-Albert
_______________________________________________
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