• 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: Return key should not end editing in NSTextField
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Return key should not end editing in NSTextField


  • Subject: Re: Return key should not end editing in NSTextField
  • From: Douglas Davidson <email@hidden>
  • Date: Mon, 20 Jan 2003 15:01:47 -0800

On Monday, January 20, 2003, at 02:45 PM, Beat Koch wrote:

This works as long as the current insertion point is at the end of the text but obviously not while it is in the middle. I have tried to send [control insertNewlineIgnoringFieldEditor:self] but NSTextField does not implement this method. If I send [control insertText:@"\n"] I just get a beep.

Send insertNewlineIgnoringFieldEditor: to the textView, not the control.

Douglas Davidson
_______________________________________________
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.

  • Prev by Date: Leaking Memory
  • Next by Date: Re: saving SplitView positions
  • Previous by thread: Return key should not end editing in NSTextField
  • Next by thread: Leaking Memory
  • Index(es):
    • Date
    • Thread