• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSIndexSet incomplete?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >NSIndexSet incomplete? (From: Arthur C. <email@hidden>)

  • Prev by Date: Re: Turning off sorting for one column of an NStableView
  • Next by Date: Re: dealloc for cleanup versus freeing memory
  • Previous by thread: NSIndexSet incomplete?
  • Next by thread: How to require contiguous selection in a table view?
  • Index(es):
    • Date
    • Thread