NSTextfield in tableColumn changing color slow
NSTextfield in tableColumn changing color slow
- Subject: NSTextfield in tableColumn changing color slow
- From: Steven Hamilton <email@hidden>
- Date: Thu, 16 Oct 2008 19:03:33 +1000
Hi Folks,
I have a core data bound tableColumn that displays a currency balance.
My NSManagedObject is a custom class that calculates the balance from
a @sum of related transactions and returns the balance. The binding
then displays this balance in the tableColumn. So far so good. This
works fast.
I've implemented the delegate method below to query the NSTextfield
value and change the color to red if it's less than 0. However, when I
implement this and scroll the table its slow and jerky. Clearly I'm
going about this the wrong way. How is it best to change the color
based on the value of the cell?
- (void)tableView:(NSTableView *)tableView willDisplayCell:(id)cell
forTableColumn:(NSTableColumn *)tableColumn row:(NSInteger)row;
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden