NSIndexSet: how is this supposed to work?
NSIndexSet: how is this supposed to work?
- Subject: NSIndexSet: how is this supposed to work?
- From: Stephane Sudre <email@hidden>
- Date: Mon, 3 Oct 2005 17:48:52 +0200
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.
With the old API, I can easily enumerate the index of the selected rows.
With the new API (which I'm not going to use because of backward
compatibility issues), I'm still wondering whether it's just possible
to do this without having to write more lines of code and playing with
C array and memory.
I've seen a NSIndexSetEnumerator on cocoadev but I'm not fond of this
solution because it still involves C arrays and allocating memory the C
way.
_______________________________________________
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