Re: connecting custom formatter to tableView column
Re: connecting custom formatter to tableView column
- Subject: Re: connecting custom formatter to tableView column
- From: Paul Forgey <email@hidden>
- Date: Wed, 2 Mar 2005 03:11:56 -0800
What you are doing sounds fine. Alternatively, you could do something
like:
NSTableColumn *column = [myTableView
tableColumnWithIdentifier:@"thatColumn"];
[[column dataCell] setFormatter:[[[MyFormatter alloc] init]
autorelease]];
But I think you are going to end up with exactly the same results. If
you feel the formatter is being called unnecessarily, perhaps the table
is being reloaded unnecessarily? The formatter is probably going to be
called when the cell feels for any reason it needs to refresh the value
it is displaying. Did you mess with the backing store options of the
window holding your NSTableView?
On Mar 1, 2005, at 11:51 PM, david kiers wrote:
Hi list,
Could somebody tell me how to connect a custom formatter to a
tableView column. I am now using a NSTextFieldCell , dragged into the
tableView column header, with it’s formatter outlet connected to the
custom formatter. This somehow causes the formatted to be called more
often then apparently necessary , for instance when another window is
made key window.
Thanks a lot,
David
_______________________________________________
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