Re: multiline NSTextFields
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