[Mono-osx] NSTableView issues and Graphic issues
jon.lipsky at elevenworks.com
Wed Apr 25 14:58:05 UTC 2012
To color rows of a NSTableView, you can implement your own "Cell" class to do the custom drawing. You can then assign that cell to one of your columns in your tableview like this:
column0 = new NSTableColumn (new NSNumber(0));
cell0 = new MyCustomCell();
column0.DataCell = cell0;
To draw a string, the easiest solution would be to use one of the methods on NSString:
var myString = new NSString("my string");
That will draw the string to the current graphics context.
On Apr 25, 2012, at 10:43 AM, Tomas Trescak wrote:
> I am reposting this question as I have not solved my problem and noo
> one seems to respond to this problem.
> If you don't know the direct solution can you help me with workaround?
> #1: How to color rows of NSTableView?
> I tries subscribing to event WillDisplayCell but this event is not
> raised and subscribing to it breaks table behavior, so that rows are
> no longer selectable.
> #2: How to draw text using graphics
> I tried method from GraphicContext ShowText() but this methods does
> not display anything
> Any help is greatly appreciated
> Mono-osx mailing list
> Mono-osx at lists.ximian.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Mono-osx