Ok so I have several questions about NSNotFound
:
How come
NSNotFound
is defined asNSIntegerMax
?How come apple uses signed instead of unsigned? Wouldn't it be smarter or better yet more logically convenient to use unsigned since the method it relates to if not found return a unsigned value neither-less.
Why is there a possibility for it to return either -1 or
NSIntegerMax
?