Loop through NSTableView to set NSCell state
Loop through NSTableView to set NSCell state
- Subject: Loop through NSTableView to set NSCell state
- From: Onar Vikingstad <email@hidden>
- Date: Sun, 14 Apr 2002 16:28:10 +0200
I have been trying to find a way to loop through a NSTableView, row by
row, to check the stringValue of one of the columns up against the
contents of an array I have. If the array-contents match the stringValue
it's just supposed to check the NSButtonCell with setNextState.
I assume this can be done with using an enumerator, but how? I have
tried fiddling with doing a selectAll on the NSTableView, creating an
selectedRowEnumerator out of that, and then selecting the first row and
start looping through, going down the table row by row. But this feels
like an awfully hard approach, and there must be an easier way!
Hope someone will give me some suggestions or sample code to get me on
the right track here...
Kind regards,
Onar Vikingstad
_______________________________________________
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.