• 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 NSTextFields
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: multiline NSTextFields


  • Subject: Re: multiline NSTextFields
  • From: Ondra Cada <email@hidden>
  • Date: Mon, 24 Sep 2001 22:00:21 +0200

Andreas,

>>>>>> Andreas Monitzer (AM) wrote at Mon, 24 Sep 2001 20:19:24 +0200:
AM> >To override the custom field editor, you should implement the
AM> >windowWillReturnFieldEditor:toObject: method in your window's delegate.
AM>
AM> Well, since I'm working inside the System Preferences app (just like the
AM> network-setup), I can't alter the window's delegate, because that might
AM> break something (maybe not now, but maybe in the future). Any better way
AM> to set the field editor?

I haven't checked it, so take this with a grain of salt, *but*

(i) don't mess with a window's field editor if the window does not belong to you;
(ii) you should be able to use just a text field delegate and its methods to
catch Return and do something reasonable;
(iii) is there a reason not to use NSTextView instead of NSTextField?
---
Ondra Cada
OCSoftware: email@hidden http://www.ocs.cz
private email@hidden http://www.ocs.cz/oc


References: 
 >Re: multiline NSTextFields (From: Andreas Monitzer <email@hidden>)

  • Prev by Date: Re: Loading a nib window and making it key
  • Next by Date: Re: Loading a nib window and making it key
  • Previous by thread: Re: multiline NSTextFields (solution)
  • Next by thread: Loading a nib window and making it key
  • Index(es):
    • Date
    • Thread