• 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: keyboard events
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: keyboard events


  • Subject: Re: keyboard events
  • From: David Rio Deiros <email@hidden>
  • Date: Tue, 11 Sep 2007 20:29:09 -0700

On Tue, Sep 11, 2007 at 06:04:38PM +0200, Manfred Schwind wrote:
> >I have a very basic cocoa application that has an NSTextField, a
> >couple of buttons and a scroll view.
> >The user enters some word in the textfield, then clicks one of the
> >buttons and the application writes
> >something to the scroll view. The other button just cleans the
> >scroll view.
> >
> >The application works fine, but now I want to add some code so
> >after entering the word the user can
> >hit <enter> and then the results get generated in the scroll view
> >(same as if he/she press the "execute"
> >button).
>
> Sounds like you simply have to set the same target and action for
> your NSTextField as for your Execute-Button.
> (In Interface Build connect your NSTextField with "Control-dragging"
> to the desired target and select the desired action from the list.)

The target is already in place an it is being executed. The problem is
that it only works if I use the mouse to click "execute". I would like
the user to be able to hit the enter key right after inserting the information
in the NSTextField so they don't have to use the mouse.
_______________________________________________

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: keyboard events
      • From: Liam Whalen <email@hidden>
References: 
 >keyboard events (From: David Rio Deiros <email@hidden>)
 >Re: keyboard events (From: Manfred Schwind <email@hidden>)

  • Prev by Date: Re: keyboard events
  • Next by Date: Memory leak with CIImage
  • Previous by thread: Re: keyboard events
  • Next by thread: Re: keyboard events
  • Index(es):
    • Date
    • Thread