• 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
Re: Multiline NSTextField
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Multiline NSTextField (From: Drarok Ithaqua <email@hidden>)

  • Prev by Date: NSNumberFormatter question
  • Next by Date: Re: converting NeXTstep NIB files to cocoa
  • Previous by thread: Multiline NSTextField
  • Next by thread: NSNumberFormatter question
  • Index(es):
    • Date
    • Thread