Avoid "Ambiguous use of NSNotFound" error

Replaced NSNotFound with Foundation.NSNotFound, to stop the error "Ambiguous use of NSNotFound"