How do I get the (int)Value of an NSStepperCell in an NSTableView?
How do I get the (int)Value of an NSStepperCell in an NSTableView?
- Subject: How do I get the (int)Value of an NSStepperCell in an NSTableView?
- From: Judith Maria Nefertari Dohmann <email@hidden>
- Date: Tue, 20 Apr 2004 07:56:21 +0200
Dear listmembers,
I still have trouble with cells in NSTableView s.
I want to have a NSTableView with two columns, in the first one
are numbers in the second are NSStepperCells which I want to
use to change the numbers. I put this together in InterfaceBuilder.
In my datasource-object I have an NSMutableArray which contains
the entries of the first column.
But now I am stuck, I have no idea how to get/set the values of the
steppers and the corresponding numbers.
I have also tried to connect my two steppercell to an action which
only prints the intValues of the steppercell via NSLog, but there
I get only the values 1 and 2, 1 usually in the first row, 2 in the
second (but after a second click), independent of the arrow
I click (up or down).
Any help or links to tutorials where this is described would be really
appreciated.
Thanks,
Judith Dohmann
_______________________________________________
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.