Re: How can I populate certain table-columns with image cells while using NSArrayController?

2010-01-15 Thread Quincey Morris
On Jan 15, 2010, at 09:50, Michael A. Crawford wrote: > Normally, when not using NSArrayController, I would make my controller the > data-source for the table. When the > -[tableView:objectValueForTableColumn:row:] method is called for the BOOL > columns, I would return an NSImageCell. I was

Re: How can I populate certain table-columns with image cells while using NSArrayController?

2010-01-15 Thread Michael A. Crawford
Thank you for the article. -Michael On Jan 15, 2010, at 12:54 PM, Arun wrote: > You can find a beautiful article on the same @ > http://www.martinkahr.com/2007/05/04/nscell-image-and-text-sample/ > > HTH > -Arun KA > > On Fri, Jan 15, 2010 at 11:20 PM, Michael A. Crawford > wrote: > Conside

How can I populate certain table-columns with image cells while using NSArrayController?

2010-01-15 Thread Michael A. Crawford
Consider an NSTableView instance populated with data from an NSArrayController, which is bound to a content array containing instances of class foo. All of class foo's properties return BOOL and NSString values. The two BOOL values need to be shown in the table using icon images. Should the i