• 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: how is this supposed to work?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >NSIndexSet: how is this supposed to work? (From: Stephane Sudre <email@hidden>)

  • Prev by Date: NSIndexSet: how is this supposed to work?
  • Next by Date: Re: Motorola ARGB -> 2vuy AltiVec code?
  • Previous by thread: NSIndexSet: how is this supposed to work?
  • Next by thread: Core data saving location
  • Index(es):
    • Date
    • Thread