• 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: Binding to column headers
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Binding to column headers


  • Subject: Re: Binding to column headers
  • From: Tim Lucas <email@hidden>
  • Date: Thu, 9 Jun 2005 09:25:40 +1000

On 09/06/2005, at 7:18 AM, Thomas Davie wrote:
I would like to display a table view in which the rows are events, and the columns are properties. Making this happen for specific properties is easy - I simply set up the relevant fetched properties and grab the data. However, setting it up to display one column for each property that appears in at least one event (or some user selectable subset of this) is much harder, and I can't see the way forward.

Things get tricky if you don't have fixed columns.

One solution would be to observe the NSArrayController's arrangedObjects key. On change, find the common properties of those objects and modify the NSTableView appropriately.

- tim lucas

_______________________________________________
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: 
 >Binding to column headers (From: Thomas Davie <email@hidden>)

  • Prev by Date: Re: Events, drive mounts
  • Next by Date: DnD Core Data objects?
  • Previous by thread: Binding to column headers
  • Next by thread: NSArrayController's remove: does nothing
  • Index(es):
    • Date
    • Thread