Hi guys,
I've been struggling for a while with a bit of code. What I want to do is, if the user has typed in "<", then carry on doing the method, if not don't do the rest of the method.
So I realized I needed the cursor to be in front of the "<" to recognize it and came up with this code:
Code:
if (myCursor.location = ...)
myCursor is an NSRange.
So basically, my question is what is the location part gonna be? What I'm stuck with is I don't know how to see if a user has typed in a < and if the cursor is after that. Any ideas appreciated.
Thanks,
Oliver