+1  A: 

UIViewController is a UIResponder... but it's not the UIResopnder that should receive the insertText: message. You want to call insertText: on the UITextField itself. If you take a look at UIResponder.h you'll see the following comment near the paste: method

// these methods are not implemented in NSObject

Meaning that it's not necessarily safe to call them on just any UIResponder. They can only safely be called on subclasses such as UITextField and UITextView which actually implement them. This was a really strange design decision on Apple's part.

ragfield
I just tried adding an empty paste: method, and this gets past the above error.What needs to be in the paste: method in order for the inserText to actually insert text?Cheers
norskben
You don't want to call either insertText: or paste: on your UIViewController object, you want to call [textField insertText: text]
ragfield
Well, i have solved it now, the above at least got me on the right direction. Thanks.
norskben