Re: Loop through NSTableView to set NSCell state
Re: Loop through NSTableView to set NSCell state
- Subject: Re: Loop through NSTableView to set NSCell state
- From: j o a r <email@hidden>
- Date: Sun, 14 Apr 2002 19:23:24 +0200
On Sunday, April 14, 2002, at 05:23 , Erik J. Barzeski wrote:
I disagree, and have found times to use -selectedRowEnumerator many
times,
if only to figure out _what_ object in the "model" is selected based on
the
selected row's index.
Never say never. :)
Yes, you can enumerate over the selected cells in the table view, but
that is not because it is a view object, but because it is also a
control object. As far as I understand it, the purpose of that
enumeration is not to find the object values but rather to find the
indexes so that the correct entries can be located in the model object -
you can see that it returns row numbers, not cells.
Of course you are correct - never say never. I'm sure that there are
exceptions to my statements, I don't claim to hold authority to any of
this, but I do think that it would have been wrong with regards to the
original question in this thread to recomend an approach enumerating
over the cells in the table view.
j o a r
Ps. When you are using digest Erik, please take care to preserve the
original subject of the message when replying to the list. Ds.
_______________________________________________
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.