Re: NSIndexSet incomplete?
Re: NSIndexSet incomplete?
- Subject: Re: NSIndexSet incomplete?
- From: glenn andreas <email@hidden>
- Date: Mon, 6 Aug 2007 13:22:17 -0500
On Aug 6, 2007, at 12:45 PM, Arthur C. wrote:
Hello,
I'm trying to find an efficient way to determine whether the index
set is contiguous.
[snip]
So, this may be something for an enhancement request, or did I miss
something?
if ([indexSet firstIndex] + [indexSet count] - 1 == [indexSet
lastIndex]) {
// contiguous
}
Glenn Andreas email@hidden
<http://www.gandreas.com/> wicked fun!
quadrium | flame : flame fractals & strange attractors : build,
mutate, evolve, animate
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden