How do I get the ASCII value as an int of a character in Cocoa? I found an answer for doing this in python, but I need to know how to do this in Cocoa. ( I am still a noob in Cocoa).
Python method:
use function ord() like this:
>>> ord('a')
97
and also chr() for the other way around:
>>> chr(97)
'a'
how do I do this in Cocoa?