Re: NSTableView and NSImage
Re: NSTableView and NSImage
- Subject: Re: NSTableView and NSImage
- From: Nick Müller <email@hidden>
- Date: Thu, 11 Apr 2002 09:32:14 +0200
On 10.04.2002 at 23:43 Uhr, Lucas Haley wrote:
>
has anyone out there come across the way to get a NSTableView to
>
display images in its cells?
In your awakeFromNib:
NSTableColumn *col = [myTableView
tableColumnWithIdentifier:@"someIdentifier"]; // or equivalent
NSImageCell *cell = [[NSImageCell alloc] init];
// make some settings to cell, if required
[col setDataCell:cell];
[cell release];
or, shorter:
NSTableColumn *col = [myTableView
tableColumnWithIdentifier:@"someIdentifier"];
[col setDataCell:[[[NSImageCell alloc] init] autorelease]];
Nick
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.