• 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
TableView cell with image?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

TableView cell with image?


  • Subject: TableView cell with image?
  • From: Austin Sarner <email@hidden>
  • Date: Sun, 23 Jan 2005 00:11:50 -0500

I'm trying to set a cell in a tableview to display an image.

I start by implementing
- (void)tableView:(NSTableView *)aTableView willDisplayCell:(id)aCell forTableColumn:(NSTableColumn *)aTableColumn row:(int)rowIndex

Then I determine if it is the cell I want and do

[aCell setType:NSImageCellType];
[aCell setImage:[NSImage imageNamed:@"minitextclipping"]];

However, nothing appears. If I set it to setStringValue: then the cells correctly change caption.

Thanks for any help
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: TableView cell with image?
      • From: Austin Sarner <email@hidden>
  • Prev by Date: Re: auto-sizing NSTableView
  • Next by Date: Re: AddressBook card view
  • Previous by thread: Re: auto-sizing NSTableView
  • Next by thread: Re: TableView cell with image?
  • Index(es):
    • Date
    • Thread