Re: multiline NSTextFields
Re: multiline NSTextFields
- Subject: Re: multiline NSTextFields
- From: Malte Tancred <email@hidden>
- Date: Tue, 25 Sep 2001 11:08:46 +0200
If you're in control of the text fields and their delegates you can
implement
the delegate method control:textShouldBeginEditing: and send the passed
in field editor (an instance of NSText) the message setFieldEditor: with
an
argument of NO to turn off TextField-like interpretation of the return
key.
If you're trying to change the behaviour of the three text fields you
mentioned
you have to do it some other way, but why would you want to do that? :-)
Just a thought,
Malte
Andreas Monitzer:
Apple's Network Setup features three special NSTextFields (DNS, search
domains, proxy bypass addresses) which allow multiple lines by pressing
return instead of the regular (non-intuitive) opt-return. How is it
done?
I've looked into the nib, but no magic is revealed here. No subclass,
no formatter, only the delegate is set. In IB test mode it doesn't work
properly.
andy
--
Description forthcoming.
_______________________________________________
cocoa-dev mailing list
email@hidden
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
--
Malte Tancred
Computer programmer, Oops AB, Sweden
mailto:email@hidden
http://www.oops.se/