• 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: Bindings help: Row-specific Null Placeholder in an NSTableColumn
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bindings help: Row-specific Null Placeholder in an NSTableColumn


  • Subject: Re: Bindings help: Row-specific Null Placeholder in an NSTableColumn
  • From: mmalcolm crawford <email@hidden>
  • Date: Sat, 22 Jan 2005 14:41:08 -0800


On Jan 22, 2005, at 5:41 AM, Warren Burton wrote

Id be looking at implementing the TV delegate method in the controller itself sort of
- (void)tableView:(NSTableView *)aTableView willDisplayCell:(id)aCell forTableColumn:(NSTableColumn *)aTableColumn row:(int)rowIndex
{
if([[[self arrangedObjects] objectAtIndex:rowIndex] fileIsParsed]) [cell setTextColor:[NSColor aubergineColor]];
else [cell setTextColor:[NSColor puceColor]];
}



This certainly should work, but perhaps more "consistent" would be to establish a binding for the 'textColor' with a value transformer. See the "To Dos" example at <http://homepage.mac.com/mmalc/CocoaExamples/controllers.html>.

mmalc



_______________________________________________
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: 
 >Re:Bindings help: Row-specific Null Placeholder in an NSTableColumn (From: Warren Burton <email@hidden>)

  • Prev by Date: Re: Bindings help: Row-specific Null Placeholder in an NSTableColumn
  • Next by Date: storing numbers
  • Previous by thread: Re:Bindings help: Row-specific Null Placeholder in an NSTableColumn
  • Next by thread: What fonts are guaranteed to be on a user's machine?
  • Index(es):
    • Date
    • Thread