One Quickie


Iterating through an NSIndexSet (General->General)
unsigned index;
for (index = [indexSet firstIndex];
      index != NSNotFound; index = [indexSet indexGreaterThanIndex: index])  {
   ...
}
(courtesy of mikeash)



borkware home | products | miniblog | rants | quickies | cocoaheads
Advanced Mac OS X Programming book

webmonster@borkware.com