• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Displaying images in an outline view
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Displaying images in an outline view
      • From: Dave Thorup <email@hidden>
  • Prev by Date: Re: classic equivalent to nsstatusitem?
  • Next by Date: Re: Displaying images in an outline view
  • Previous by thread: Re: mounting idisk?
  • Next by thread: Re: Displaying images in an outline view
  • Index(es):
    • Date
    • Thread