• 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: mmalcolm crawford <email@hidden>
  • Date: Sat, 2 Jul 2005 16:58:57 -0700


On Jul 2, 2005, at 4:16 PM, Sanri Parov wrote:
the example was pretty good, but there's a point: you use an array,
which is a very good and common way to treat datas.
In my case, I'd like to set the first column with a progressive row
number and the second one with a checkbox that's set
on the checked position if a file exists in a certain location.
Can I use an array even in this case? What do you suggest?

It's up to you what you return in ... objectValueForTableColumn ...

- (id) tableView: (NSTableView *) tableView
    objectValueForTableColumn: (NSTableColumn *) tableColumn
    row: (int) rowIndex
{

if ([[tableColumn identifier] isEqualToString:@"rowNumber"])
{
    return [NSNumber numberWithInt:rowIndex];
}

// implementation continues...


mmalc

_______________________________________________
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: Sanri Parov <email@hidden>
References: 
 >Re: NSTableView & different columns (From: Dave Hersey <email@hidden>)
 >Re: NSTableView & different columns (From: Sanri Parov <email@hidden>)

  • Prev by Date: Re: NSTableView & different columns
  • Next by Date: undo prepareWithInvocationTarget KVC
  • Previous by thread: Re: NSTableView & different columns
  • Next by thread: Re: NSTableView & different columns
  • Index(es):
    • Date
    • Thread