Re: NSTextField
Re: NSTextField
- Subject: Re: NSTextField
- From: email@hidden
- Date: Thu, 20 Mar 2003 09:39:13 +0100
On mercredi, mars 19, 2003, at 10:46 PM, email@hidden wrote:
Why can't I get the - (BOOL)textShouldEndEditing:(NSText *)textObject;
delegate to work for NSTextField.
I've created a simple subclass of NSObject that has the one method.
Read this into the .nib file and instantiated it. Then I connected
the text field's delegate to the new object.
Run the test app and type some stuff into the field and switch out of
the field. Nothing happens. I've even tried using the debugger and
putting a break point in there and nothing happens.
Use - (BOOL)control:(NSControl *)control textShouldEndEditing:(NSText
*)fieldEditor; instead.
- (BOOL)textShouldEndEditing:(NSText *)textObject; is sent to the
NSTextField itself by the NSTextFieldCell.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.