If I have the following code:
NSUInteger i, count = [pages count];
for (i = 0; i < count; i++) {
Page* page = (Page *)[pages objectAtIndex:i];
[page setPageNumber:[i unsignedIntValue]];
}
PageInfo.pageNumber is a size_t.
Is it still necessary to use [i unsignedIntValue]
or do I just assign i
directly?