lostFocus() / gotFocus() not working with GUI

Hi All

I’m having trouble implementing the lostFocus(), gotFocus() or exit() methods. It appears that this problem only occurs in apps that use a .xib file (GUI). I’m getting the below errors. Anyone know how to fix this?

James