I'm trying to set up a delegate on a UITextField so I can know when the user 
has 
finished editing. 
My delegate is my main view controller:

@interface MainViewController : UIViewController <UITextFieldDelegate>
{
. . .
}

and in the implementation file I have:

- (void) textFieldDidEndEditing:(UITextField)textField
{
    // do stuff
}

I set the delegate on the textfield like this:

    nameTextField.delegate = (id <UITextFieldDelegate>)mainViewController;

It all builds but at runtime my delegate method never gets called.
What am I overlooking?
iOS 4.2


      
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to