I’m a bit new to Cocoa and I was reading about NSIndexSet. Why is it necessary? It seems to me that NSIndexSet is nothing but a NSSet of integers, is that right? What’s the purpose of creating a separate collection alltogether?
I’m a bit new to Cocoa and I was reading about NSIndexSet . Why
Share
There are a couple reasons:
NSIndexSetstores unsigned integer primitive types, whereasNSSetstores objects.NSIndexSetis optimized for storing unsigned integers, specifically a set of integers into another data structure like anNSArray.