Here is the method declaration midway in Apple’s documentation:
Learning Objective-C: A Primer
- (void)insertObject:(id) anObject atIndex:(NSUInteger) index
Why is there no * right after NSUInteger. I thought all objects were pointer types and all strongly typed pointers had to have a * character after it.
NSUIntegeris not an object type, it is atypedeftounsigned int.The only reason that you would actually want to use a
*in this context would be if you wanted to get the address of an int and store something in it. (Some libraries do this with error messaging). An example of this: