Re: Editing a dictionary using NSTableView

2008-10-27 Thread Graham Cox
On 28 Oct 2008, at 3:27 am, Corbin Dunn wrote: You probably want to set an appropriate formatter on the cell in - willDisplayCell:. This sounds like the best approach to what you are wanting. You could always right a custom formatter if you need to. OK, thanks, I'll look into that approach

Re: Editing a dictionary using NSTableView

2008-10-27 Thread Corbin Dunn
On Oct 26, 2008, at 3:29 PM, Graham Cox wrote: Let's say I have a NS(Mutable)Dictionary and I'd like to make a very simple editor for its keys and values. So I have a NSTableView with two columns, key and value. The dictionary can contain any mix of strings and numbers, and the numbers can

Re: Editing a dictionary using NSTableView

2008-10-26 Thread Graham Cox
On 27 Oct 2008, at 9:41 am, Jason Coco wrote: If I were doing it, I'd have a type key and let the user specify what type s/he wanted, like in the current property list editor. That way if the user wants to type a real number but actually wants it to be a string for whatever reason, it could

Re: Editing a dictionary using NSTableView

2008-10-26 Thread Jason Coco
On Oct 26, 2008, at 18:29 , Graham Cox wrote: Let's say I have a NS(Mutable)Dictionary and I'd like to make a very simple editor for its keys and values. So I have a NSTableView with two columns, key and value. The dictionary can contain any mix of strings and numbers, and the numbers can

Editing a dictionary using NSTableView

2008-10-26 Thread Graham Cox
Let's say I have a NS(Mutable)Dictionary and I'd like to make a very simple editor for its keys and values. So I have a NSTableView with two columns, key and value. The dictionary can contain any mix of strings and numbers, and the numbers can be ints or reals. I find that when setting an e