Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Displaying images in an outline view



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.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.