setting a value in a table (NSTableView) [SOLVED]
setting a value in a table (NSTableView) [SOLVED]
- Subject: setting a value in a table (NSTableView) [SOLVED]
- From: John Spicer <email@hidden>
- Date: Sat, 2 Oct 2004 13:32:59 -0500
Turns out the secret is to use Double instead of Float. Go figure.
Previous message:
I've created a table and I want to add rows to it. I'm using an NSMutableDictionary with a bunch of keys. I'm having trouble with floats.
If I set the key as a string, i.e. "82.50" it won't show in the table, I'm assuming because I have a $$ formatter on the column.
If I create a float like this Float myFloat = new Float (82.50) and set that as the value for the key, I get a silly value in the table column "11,254,55...." which is obviously wrong.
I'm doing this in java using the
setObjectForKey(value, key) method.
What's the secret? _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden