• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Multiline NSTextField
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Multiline NSTextField
      • From: Marc Monguio <email@hidden>
  • Prev by Date: Re: Printing outside of NSView bounds
  • Next by Date: NSNumberFormatter question
  • Previous by thread: Re: Printing outside of NSView bounds
  • Next by thread: Re: Multiline NSTextField
  • Index(es):
    • Date
    • Thread