Looping using NSRange
It kind of sounds like you’re expecting NSRange to be like a Python range object. It’s not; NSRange is simply a struct typedef struct _NSRange { NSUInteger location; NSUInteger length; } NSRange; not an object. Once you’ve created one, you can use its members in a plain old for loop: NSUInteger year; for(year = years.location; … Read more