Stepper inside table view
Stepper inside table view
- Subject: Stepper inside table view
- From: "So Hok Chun, Bill" <email@hidden>
- Date: Sun, 15 Feb 2004 05:06:05 +0800
Dear All,
I have put NSStepperCell into a table column and want to do sth
described as below:
My GUI behaves as follow:
There are say 2 columns in an NSTableView.
1 column contains NSStepperCell. The other is a numeric field.
When user clicks on the stepper, the value in the numeric field should
in/decrease.
My problem:
The stepper simply ignores double click, triple click and so on.... it
only captures the 1st click. (Please help)
I think NSTableView does some filtering in its mouseDown:(NSEvent
*)theEvent method.
How can I ask NSTableView to treat double-click, triple-click,
any-click as single click for NSStepperCell only?
I think I should override the mouseDown: method, shouldn't I? If so,
how can I look up the cell referred by the NSEvent passed by the
mouseDown: method (so that I can further check whether the cell is an
NSStepperCell)? Any tricks to do this job without writing code to do
the transverse from table -> column -> cells -> check coordinates?
Thanks a lot for your help.
Yours,
Bill
_______________________________________________
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.