I am desperatly trying to add an image to a tableview, but everything displays, except the image. Here is my code:
NSImageCell *dataCell;
NSTableColumn *column;
dataCell = [[NSImageCell alloc]initImageCell:[NSImage imageNamed"test.tiff"]];
column = [myTableView tableColumnWithIdentifier"Image"];
[dataCell setImageAlignment:NSImageAlignCenter];
[dataCell setImageScaling:NSScaleNone];
[dataCell setImageFrameStyle:NSImageFramePhoto];
[column setDataCell:dataCell];
What am i doing wrong. The border etc. displays fine, except for the image???
PS: The datacell contains the image, because i tried to draw it in a NSImageView with succes.
Thanks.
NSImageCell *dataCell;
NSTableColumn *column;
dataCell = [[NSImageCell alloc]initImageCell:[NSImage imageNamed"test.tiff"]];
column = [myTableView tableColumnWithIdentifier"Image"];
[dataCell setImageAlignment:NSImageAlignCenter];
[dataCell setImageScaling:NSScaleNone];
[dataCell setImageFrameStyle:NSImageFramePhoto];
[column setDataCell:dataCell];
What am i doing wrong. The border etc. displays fine, except for the image???
PS: The datacell contains the image, because i tried to draw it in a NSImageView with succes.
Thanks.