public NSObject objectValueForTableColumn (NSTableView table_view,
NSTableColumn table_column, int row_index)
{
if (table_column.HeaderToolTip.Equals ("Description")) {
if (table_view.SelectedRow == row_index &&
SparkleShare.UI.Setup.IsKeyWindow &&
SparkleShare.UI.Setup.FirstResponder == table_view) {
return SelectedCells [row_index];
}
return Cells [row_index];
}
string image_path = (Items [row_index] as Preset).ImagePath;
if (backing_scale_factor >= 2) {
string hi_path = String.Format ("{0}@{1}x{2}",
Path.Combine (Path.GetDirectoryName (image_path), Path.GetFileNameWithoutExtension (image_path)),
backing_scale_factor, Path.GetExtension (image_path)
);
if (File.Exists (hi_path))
image_path = hi_path;
}
return new NSImage (image_path) { Size = new SizeF (24, 24) };
}
}