Re: NSIndexSet: how is this supposed to work?
Re: NSIndexSet: how is this supposed to work?
- Subject: Re: NSIndexSet: how is this supposed to work?
- From: glenn andreas <email@hidden>
- Date: Mon, 3 Oct 2005 11:12:20 -0500
On Oct 3, 2005, at 10:48 AM, Stephane Sudre wrote:
I was having a look at the NSTableView header and was reminded
about this deprecated thing related to selectedRowEnumerator.
The suggestion in the header is to use selectedRowIndexes.
The problem is that every time I look at NSIndexSet, I can't
prevent from wondering how this NSIndexSet is supposed to be
working in the real world.
Roughly (typed in mail, but based on code I've used before):
unsigned int current = [indexSet firstIndex];
while (current != NSNotFound) {
NSLog("Has index %d", current);
current = [indexSet indexGreaterThanIndex: current];
}
Glenn Andreas email@hidden
<http://www.gandreas.com/> wicked fun!
quadrium | build, mutate, evolve | images, textures, backgrounds, art
_______________________________________________
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