Re: how to bind to array count
Re: how to bind to array count
- Subject: Re: how to bind to array count
- From: Dustin Voss <email@hidden>
- Date: Tue, 20 Jan 2004 11:15:02 -0800
On 20 Jan, 2004, at 7:18 AM, Ken Grigsby wrote:
I have a table view bound to an NSArrayController and would like to
display the number of rows in a text field. Is there a way to bind the
text field value to the count of the array managed by the array
controller?
Bind the text field value to the controller's "contentArray.@count"
key-path. This, and other KVC array operators, is documented at
http://developer.apple.com/documentation/Cocoa/Conceptual/
KeyValueCoding/Concepts/ArrayOperators.html.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.