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

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


  • Follow-Ups:
    • Re: NSIndexSet: how is this supposed to work?
      • From: glenn andreas <email@hidden>
  • Prev by Date: PerlObjCBridge: calls to NSMakeSize_ (and NSMakeRect_) not working?
  • Next by Date: Re: NSIndexSet: how is this supposed to work?
  • Previous by thread: Re: PerlObjCBridge: calls to NSMakeSize_ (and NSMakeRect_) not working?
  • Next by thread: Re: NSIndexSet: how is this supposed to work?
  • Index(es):
    • Date
    • Thread