• 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: Advice on using NSCell
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Advice on using NSCell


  • Subject: Re: Advice on using NSCell
  • From: James Bucanek <email@hidden>
  • Date: Fri, 3 Mar 2006 17:39:03 -0700

Corbin Dunn wrote on Friday, March 3, 2006:
>You may simply want to build this ability into your regular formatter.
>Have a flag that indicates if it should use the grey color, or not,
>and use it. Then, in willDisplayCell, set that flag for the formatter
>on the cell to be YES or NO, depending on how it should be...

I really don't. I reuse these formatters all over the place and I really don't want to polute them all with the same code just so I can use them in this one table.

I already wrote my "filter" formatter and it works great! I did, approximately, what you suggested. My NSTableView intercepts willDisplayCell, determines how the row should be colored, then leaves a property set that my new formatter queries.

Thanks to everyone for the feedback.

--
James Bucanek
 _______________________________________________
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: Advice on using NSCell (From: Corbin Dunn <email@hidden>)

  • Prev by Date: Re: Advice on using NSCell
  • Next by Date: Re: Advice on using NSCell
  • Previous by thread: Re: Advice on using NSCell
  • Next by thread: Re: Advice on using NSCell
  • Index(es):
    • Date
    • Thread