• 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
Re: NSTableView custom cell problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTableView custom cell problem


  • Subject: Re: NSTableView custom cell problem
  • From: j o a r <email@hidden>
  • Date: Thu, 6 Jan 2005 21:52:34 +0100


On 2005-01-06, at 21.47, Andrew Skinner wrote:

What I did to make it (semi)work was this (please bear in mind I was getting desperate by this point):

- (void)tableView:(NSTableView *)view
willDisplayCell:(id)cell
forTableColumn:(NSTableColumn *)col
row:(int)row
{
if ([[col identifier] isEqualTo: @"name"]) {
	feedCell *nameCell = [[feedCell alloc] init];
	[col setDataCell:nameCell];
}
else if ([[col identifier] isEqualTo: @"icon"])
{
	[cell setImage:[NSImage imageNamed: @"Picture"]];
}
}

That doesn't quite make sense. Zip up the project and send it to me, and I'll fix your table view free of charge.


[cell representedObject];
This just returns the cells object value. Something else I thought i'd try.

Yes, but you don't do anything with the returned value - so it's kind of moot.


j o a r

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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

References: 
 >NSTableView custom cell problem (From: Andrew Skinner <email@hidden>)
 >Re: NSTableView custom cell problem (From: j o a r <email@hidden>)
 >Re: NSTableView custom cell problem (From: Andrew Skinner <email@hidden>)

  • Prev by Date: Re: NSTableView custom cell problem
  • Next by Date: Re: Default Button heartBeat bug
  • Previous by thread: Re: NSTableView custom cell problem
  • Next by thread: #ifdef/build style question
  • Index(es):
    • Date
    • Thread