• 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: My new framwork
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: My new framwork


  • Subject: Re: My new framwork
  • From: Allan Odgaard <email@hidden>
  • Date: Wed, 3 Mar 2004 21:28:31 +0100

On 3. Mar 2004, at 20:42, John Randolph wrote:

NSTableView - Returns an array of NSNumbers which represent all selected rows in a table.
I'll just mention that in Panther, you can use -selectedRowIndexes to get an NSIndexSet of the selection..

Which is a pain to iterate, so I'll just mention that with CocoaSTL <http://www.top-house.dk/~aae0030/cocoastl/> you can iterate an NSIndexSet like this:

NSIndexSet* indexSet = ...;
foreach(it, beginof(indexSet), endof(indexSet))
printf("%d\n", *it);

I am really puzzled that Apple does not provide a way to easily iterate objects instantiated from this class...

Btw: with CocoaSTL you can also reverse an array (as the framework also added as a category method) using: "std::reverse(beginof(array), endof(array))", where std::reverse is a function from the standard C++ library.
_______________________________________________
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.


  • Follow-Ups:
    • Re: My new framwork
      • From: mmalcolm crawford <email@hidden>
References: 
 >My new framwork (From: April Gendill <email@hidden>)
 >Re: My new framwork (From: John Randolph <email@hidden>)

  • Prev by Date: Re: Need Finder-like custom list contol in Cocoa
  • Next by Date: countrycodes
  • Previous by thread: Re: My new framwork
  • Next by thread: Re: My new framwork
  • Index(es):
    • Date
    • Thread