• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
setting a value in a table (NSTableView) [SOLVED]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Prev by Date: setting a value in a table (NSTableView)
  • Next by Date: Re: Save image in property list
  • Previous by thread: setting a value in a table (NSTableView)
  • Next by thread: Re: [ANN] Smalltalk style Blocks and iterators
  • Index(es):
    • Date
    • Thread