Re: Difference between binding to Table and Column?
Re: Difference between binding to Table and Column?
- Subject: Re: Difference between binding to Table and Column?
- From: mmalcolm crawford <email@hidden>
- Date: Mon, 31 Jan 2005 02:09:49 -0800
On Jan 30, 2005, at 7:00 AM, Mark Munz wrote:
Can someone explain the difference between binding to the table and
binding to the individual columns of a table?
I already discovered that it's not good to do both, but I'd like to
understand when to use one approach or the other. I didn't see
anything in the samples or documentation that discussed this.
<http://developer.apple.com/documentation/Cocoa/Reference/
CocoaBindingsRef/index.html?http://developer.apple.com/documentation/
Cocoa/Reference/CocoaBindingsRef/CocoaBindingsRef.html>
"Table Content Bindings
content
An NSArrayController instance that provides the content of the
NSTableView.
Typically, the content binding is created automatically when the
initial NSTableColumn binding is made, binding to the column's
NSArrayController."
If you explicitly bind 'content' you must also bind 'selectionIndexes'
and 'sortDescriptors' if you want to maintain full functionality. You
must still bind individual table columns to specify what data will be
presented in a column.
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