• 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
Closing a window with a textview using keyboard
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Closing a window with a textview using keyboard


  • Subject: Closing a window with a textview using keyboard
  • From: Knut Lorenzen <email@hidden>
  • Date: Sun, 09 Sep 2007 22:18:29 +0200
  • Thread-topic: Closing a window with a textview using keyboard

I have a window that contains an NSTextView and an NSButton of type Push
Button, whose Key Equiv. is set to "Return" ("\R") in Interface Builder in
order to serve as the default button (closing the window) when hitting
<return>.

Of course, as soon as the textview gets the focus, pressing <return> results
in a new line in the textview.

How does one resolve this dilemma? My 1st idea was to use <enter> instead of
<return>, but how do I set this in Interface Builder?

Cheers,

Knut


_______________________________________________

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

  • Follow-Ups:
    • Re: Closing a window with a textview using keyboard
      • From: Uli Kusterer <email@hidden>
  • Prev by Date: Re: NSRectArray by reference
  • Next by Date: Re: Cocoa with CodeWarrior?
  • Previous by thread: Re: determine volume name for folder that does not exist
  • Next by thread: Re: Closing a window with a textview using keyboard
  • Index(es):
    • Date
    • Thread