• 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: NSTableView & different columns
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTableView & different columns


  • Subject: Re: NSTableView & different columns
  • From: Sanri Parov <email@hidden>
  • Date: Sat, 2 Jul 2005 21:11:05 +0200

On Sat, 02 Jul 2005 11:17:39 -0700, Jerry Krinock wrote:
>>  I'm stuck with this problem: I can't write TableViews.
>>  What I'm trying to do is: in the first column (NSTextCell) set the
>>  value of rowIndex, while in the second one (NSButtonCell) set the cell
>>  on or off if I encounter certain conditions.
>
> You use that first method for both of these, passing the appropriate
> aTableColumn identifier in each case.
>
> To get these identifiers, you send the message -tableColumns to your
> NSTableView.  This can be done in your window controller's -awakeFromNib
> implementation.  You will get back an NSArray of two NSTableColumns.
>
> It's confusing to beginners because we expect table columns to be identified
> with simple integer indices like the rows are.
>
> Read in your ADC Reference Library > Documentation > Cocoa > User Experience
>>  Controls and Cells > Table Views.

I've tried to read out the documentation in Cocoa, but I find it very
small and unuseful.
For such complicated things, I'd suggest Apple a much higher level of
details in the docs.
Nevertheless, how can I return multiple different behaviour for
multiple different columns?
If the identifiers of the columns are, e.g. "Numbers" and "Buttons",
how can I in a single method return different values for column
behaving?
Thanks.



--
Sanri Parov
 _______________________________________________
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

  • Follow-Ups:
    • Re: NSTableView & different columns
      • From: mmalcolm crawford <email@hidden>
    • Re: NSTableView & different columns
      • From: Jerry Krinock <email@hidden>
References: 
 >Re: NSTableView & different columns (From: Jerry Krinock <email@hidden>)

  • Prev by Date: Re: NSTableView & different columns
  • Next by Date: Re: NSSearchField problem under 10.3
  • Previous by thread: Re: NSTableView & different columns
  • Next by thread: Re: NSTableView & different columns
  • Index(es):
    • Date
    • Thread