• 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: connecting custom formatter to tableView column
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >connecting custom formatter to tableView column (From: david kiers <email@hidden>)

  • Prev by Date: Re: different CDs, same name = trouble?
  • Next by Date: Identical undo between two views (or one view, two windows) puzzle
  • Previous by thread: connecting custom formatter to tableView column
  • Next by thread: Trying to capture standard error from an NSTask
  • Index(es):
    • Date
    • Thread