Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: First click in custom window?



 
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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden

References: 
 >Re: First click in custom window? (From: Erik Buck <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.