Displaying images in an outline view
Displaying images in an outline view
- Subject: Displaying images in an outline view
- From: Roberto Esposito <email@hidden>
- Date: Wed, 30 Apr 2003 18:12:08 +0200
Dear list,
I'm trying to display an image inside an outline view. I guess it is
possible since from in the developer docs I found the following
encouraging statement:
"The data cell for the column values is typically an instance of
NSTextFieldCell, but can be an instance of any NSCell subclass, such as
NSImageCell. "
Actually the docs are talking about NSTableView, but since the former
is a subclass of the latter I guessed that they apply to NSOutlineView
too.
I'm actually without any clue. I tried by returning an NSImage and an
NSImageCell in the
- (id)outlineView:(NSOutlineView *)outlineView
objectValueForTableColumn:(NSTableColumn *)tableColumn byItem:(id)item;
but without any luck. The only effect is to display the string returned
by the description method of those objects.
Any suggestion?
Thanks in advance,
Roberto Esposito
_______________________________________________
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.