Re: Tableview in Utility Panel
Re: Tableview in Utility Panel
- Subject: Re: Tableview in Utility Panel
- From: email@hidden
- Date: Sun, 20 Apr 2003 00:23:49 +0200
On samedi, avril 19, 2003, at 11:46 PM, <email@hidden> wrote:
Hi there!
In my app I use a utility panel with a tableview to let the user
choose one of many options that have an effect on a textview. The
problem is that the user has to click the tableview twice to make the
selection; once to make the tableview key and a second time to make
the actual selection. Is there a way to overcome this and let the
selection only take one click. I don't want the tableview to become
key anyway....
acceptsFirstMouse:
- (BOOL)acceptsFirstMouse:(NSEvent *)theEvent
Overridden by subclasses to return YES if the receiver should be sent a
mouseDown: message for theEvent, an initial mouse-down event over the
receiver in its window, NO if not. The receiver can either return a
value unconditionally, or use the location of theEvent to determine
whether or not it wants the event. NSView's implementation ignores
theEvent and returns NO.
Override this method in a subclass to allow instances to respond to
initial mouse-down events. For example, most view objects refuse an
initial mouse-down event, so the event simply activates the window.
Many control objects, however, such as NSButton and NSSlider, do accept
them, so the user can immediately manipulate the control without having
to release the mouse button.
See Also: - hitTest:
_______________________________________________
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.