An issue I have (maybe it is really easy to solve, but I am new to Obj-C. I want to print out the location and length of NSRange I created, but I get an error message. Here the code
NSRange tmpRange = [newData rangeOfData:segmentToFind options:kNilOptions range:NSMakeRange(0u, [newData length])];
NSLog(@"%@ - range location : %lu", [tmpRange location];
The error message I get is:
Bad receiver type 'NSRange' (aka 'struct _NSRange')