Re: Multiline NSTextField
Re: Multiline NSTextField
- Subject: Re: Multiline NSTextField
- From: Marc Monguio <email@hidden>
- Date: Mon, 4 Sep 2006 12:15:23 +0200
I'm not sure what you are asking, however this old thread may also
help you. It's about multiline nstokenfield but for the matter it's
the same as a nstextfield.
http://www.cocoabuilder.com/archive/message/cocoa/2006/5/23/164196
I've found an old thread here:
http://www.cocoabuilder.com/archive/message/cocoa/2001/9/24/42420
and implemented the delegate method mentioned:
- (BOOL)control:(NSControl *)control textShouldBeginEditing:(NSText
*)fieldEditor {
[fieldEditor setFieldEditor:NO];
return YES;
}
But it doesn't quite work as expected. If I load my app and click
into the text field, and press enter, it does a "post" of the data,
and never edits.
If I press any other key first, it behaves as I want, with enter
giving me a new line.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden