views:

10

answers:

1

In Objective C, when using the function NSIntersectionRange with one of the arguments being zero length, does the result equal the other argument? Didn't see this when I searched so I wanted to clarify it for others.

A: 

Yes, it returns the argument that was not 0 length.

James Van Boxtel