Multiline NSTextField
Multiline NSTextField
- Subject: Multiline NSTextField
- From: Drarok Ithaqua <email@hidden>
- Date: Mon, 4 Sep 2006 02:16:14 +0100
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.
Seems I'm asking loads of simple questions lately, but the answers
seem very hard to come by!
- Drarok
_______________________________________________
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