• 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: A color well in a table view?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: A color well in a table view?


  • Subject: Re: A color well in a table view?
  • From: Corbin Dunn <email@hidden>
  • Date: Mon, 11 Jun 2012 09:20:34 -0700

On Jun 11, 2012, at 8:45 AM, H Miersch <email@hidden> wrote:

> I found the switch that makes my table view view-based, but then my table view showed some default text instead of the text I return from -tableview:objectvaluefortablecolumn:row:
> What can I do about that?

I recommend reading the documentation on how to use a View Based NSTableView, and/or look at the TAbleViewPlayround demo to see how it is done.

corbin


>
> Sent from my iPhone
>
> On 7 Jun 2012, at 16:32, Sean McBride <email@hidden> wrote:
>
>> On Thu, 7 Jun 2012 13:53:49 +0100, H. Miersch said:
>>
>>> In my Mac app I have a table view which so far only displays text and
>>> numbers. Now I'd like to put color wells in one column (to supply colors
>>> for the lines in the diagram) and checkboxes in another (to decide
>>> whether each line should be drawn or not). Can I do that? If so, what's
>>> the best way to do that? Is it as easy as modifying
>>> tableview:objectvaluefortablecolumn:row: to retrieve the color wells
>>> from the array and return them to the table view, or are there some
>>> hoops I have to jump through?
>>
>> Unlike most NSControls, there is no NSCell for NSColorWell.  But 10.7 did add view-based tableviews, so if you can require 10.7+, that's probably your best bet.  I've been meaning to try it myself...
>>
>> --
>> ____________________________________________________________
>> Sean McBride, B. Eng                 email@hidden
>> Rogue Research                        www.rogue-research.com
>> Mac Software Developer              Montréal, Québec, Canada
>>
>>
>
> _______________________________________________
>
> 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


_______________________________________________

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


References: 
 >A color well in a table view? (From: "H. Miersch" <email@hidden>)
 >Re: A color well in a table view? (From: Sean McBride <email@hidden>)
 >Re: A color well in a table view? (From: H Miersch <email@hidden>)

  • Prev by Date: Re: A color well in a table view?
  • Next by Date: Re: Defining subclasses at run time
  • Previous by thread: Re: A color well in a table view?
  • Next by thread: Re: A color well in a table view?
  • Index(es):
    • Date
    • Thread