• 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: 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/


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

  • Prev by Date: Printer extension in MacOS X
  • Next by Date: NSWorkspace openURL
  • Previous by thread: Re: multiline NSTextFields
  • Next by thread: Re: multiline NSTextFields
  • Index(es):
    • Date
    • Thread