• 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: index column in bound NSTableView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: index column in bound NSTableView


  • Subject: Re: index column in bound NSTableView
  • From: Matt Neuburg <email@hidden>
  • Date: Sun, 23 Jan 2005 10:50:58 -0800

On Fri, 21 Jan 2005 14:37:09 -0800, Alex Rosenberg <email@hidden> said:
>Given an NSTableView using bindings, is there a simple way to add a
>column of the original array index numbers?
>
>The numbers should properly jumble when the the table is sorted.

The array is presumably an array of something - like, mutable dictionaries.
So I would write a routine that runs through the array, and adds to each
mutable dictionary a key-value pair whose key corresponds to the extra
column in the table and whose value is the index number. m.

--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide
<http://www.amazon.com/exec/obidos/ASIN/0596005571/somethingsbymatt>



 _______________________________________________
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: index column in bound NSTableView
      • From: Alex Rosenberg <email@hidden>
  • Prev by Date: Re: NSMessagePort crashes
  • Next by Date: Re: NSMessagePort crashes
  • Previous by thread: index column in bound NSTableView
  • Next by thread: Re: index column in bound NSTableView
  • Index(es):
    • Date
    • Thread