• 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
NSTextField suppressing multi line input
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTextField suppressing multi line input


  • Subject: NSTextField suppressing multi line input
  • From: Warwick Hall <email@hidden>
  • Date: Sat, 1 Dec 2007 15:05:05 +1100

Hi All,

I have a normal NSTextField which i need to ensure has no line breaks in it. It works well since there is a default button that traps the enter and return keys. but if i go into TextEdit and type two lines

line 1
line 2

and copy both lines, and return to my app and paste the clip board into the NSTextField, both lines are entered. you need to up arrow to see the line 1 but it is there.

question: how do you stop the multi line input? NSTextFieldCell has a set clip mode method but that is more about how the clipped text is drawn. I need to stop it entering in the first place.

cheers,
omega
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: Why shouldn't I release?
  • Next by Date: Re: Why shouldn't I release?
  • Previous by thread: Re: Why shouldn't I release?
  • Next by thread: [ANN] New version of RegexKit available
  • Index(es):
    • Date
    • Thread