[Mono-osx] Adding a generic object list to combobox item list

RS salgado.rod at gmail.com
Wed Feb 15 12:14:42 UTC 2012


I have a code in Windows in which I add objects to a combobox.  In these
objects, I override the ToString() method to display a friendly name in the
comboboxes.

The equivalent in Cocoa would appear to be to create a custom NSFormatter
and associate the Formatter property of the combobox with this formatter. 
There are a couple of methods to override.  Does anyone have some sample
code of how to set up this formatter?

--
View this message in context: http://mono.1490590.n4.nabble.com/Adding-a-generic-object-list-to-combobox-item-list-tp4390193p4390193.html
Sent from the Mono - OSX mailing list archive at Nabble.com.


More information about the Mono-osx mailing list