Re: NSStepperCell help
Re: NSStepperCell help
- Subject: Re: NSStepperCell help
- From: Daniel Todd Currie <email@hidden>
- Date: Sat, 21 Feb 2004 10:55:34 -0800
Is the following table data source method called on the stepper hold?
(stick an NSLog() in there to be sure)
- (id)tableView:(NSTableView *)aTableView
objectValueForTableColumn:(NSTableColumn *)aTableColumn
row:(int)rowIndex
If so, you'd only need to update the table every time this is called.
Otherwise, I'm not much help, you may need to subclass NSTableView, I
dunno.
-- Daniel Currie
On 2004 Feb 21, at 09:33, So Hok Chun, Bill wrote:
Dear All,
I'd like to create an NSStepperCell inside an NSTableView with the
behaviour as described below. However, I do not know how to archive
my goal.
The GUI behaviour is as follow:
1. A table with 2 columns. 1 column shows a numeric value and another
column is the NSStepperCell. Both the 2 cells refer to the same object
variable in the data source.
2. When I click on the stepper, the numeric value is updated. (this is
done)
3. When I click and hold the mouse on a stepper, I'd like to make the
NSTableView animates the changes in the the numeric column. But how?
Do I need to override the mouseDown method of NSTableView?
Thank you very much 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.
_______________________________________________
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.