Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Binding to column headers



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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >Binding to column headers (From: Thomas Davie <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.