Re: Bindings help: Row-specific Null Placeholder in an NSTableColumn
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