I can't figure out how to use NSIndexSet
I can't figure out how to use NSIndexSet
- Subject: I can't figure out how to use NSIndexSet
- From: John Clayton <email@hidden>
- Date: Thu, 20 Nov 2003 09:02:55 -0500
That sums it up pretty much. Once I have it, how the heck can I
iterate through it? If I try this:
int *buf;
NSRange myRange
int indCount = [myIndexSet getIndexes:buf maxCount:200
inIndexRange:&myRange];
I always get a return value of 0 and a range with location NSNotFound
(I think, 18...n).
If I print out the index set, NSLog(@"index set is %@",myIndexSet),
everything looks fine-it shows the selections in my outline view just
perfectly.
I am not the best C programmer, have I made an error with my pointers
or something? Can anyone provide an example of using an index set top
get a handle on some outline view or table view items? And, does
anyone else have trouble understanding the documentation on NSIndexSet?
Thanks a lot.
Regards,
John Clayton
--------------------------
Software Developer
Online Channel Development
email@hidden
Regards,
John Clayton
--------------------------
Software Developer
Online Channel Development
email@hidden
201.748.5717
_______________________________________________
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.