• 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
ImageInTableview
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ImageInTableview


  • Subject: ImageInTableview
  • From: Mathew Peterson <email@hidden>
  • Date: Sun, 10 Aug 2003 14:06:08 -0600

I want to place a small image in a tableview row for a certain column when its called. This is the code I am using but its simply sending me a description of the image (sure, the image is there...just not in the right form).

How can I make the image display correctly?

- (id)tableView:(NSTableView *)aTableView objectValueForTableColumn:(NSTableColumn *)aTableColumn row:(int)rowIndex
{
if ([[aTableColumn identifier] isEqualToString:@"icon"])
{
return([NSImage imageNamed:@"library"]);
}
return([item objectAtIndex:rowIndex]);
}

Thanks,

Mat
_______________________________________________
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: ImageInTableview
      • From: Chris Hanson <email@hidden>
    • Re: ImageInTableview
      • From: Stefan Schüßler <email@hidden>
    • Re: ImageInTableview
      • From: Seth Willits <email@hidden>
  • Prev by Date: Re: wrapper for zlib
  • Next by Date: Re: Documents & Controllers
  • Previous by thread: Re: Question regarding menus and document based app.
  • Next by thread: Re: ImageInTableview
  • Index(es):
    • Date
    • Thread