NSIndexSet
NSIndexSet
- Subject: NSIndexSet
- From: Matthew Johnson <email@hidden>
- Date: Sat, 29 Nov 2003 20:30:29 -0600
I am implementing a category on NSIndexSet that includes a method -
(BOOL)intersectsIndexes:(NSIndexSet *)indexSet. The implementation of
this will have to loop through one of the index sets and check for
intersection using containsIndex and intersectsIndexesInRange. I am
wondering whether it would generally be quicker to loop through the
smaller index set or perform the intersection tests on the smaller
index set. Opinions?
Thanks!
Matthew
_______________________________________________
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.