• 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
simulating <enter> in a text field by pressing a button
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

simulating <enter> in a text field by pressing a button


  • Subject: simulating <enter> in a text field by pressing a button
  • From: Joel Reymont <email@hidden>
  • Date: Wed, 02 Jan 2013 22:03:29 +0100

I have a dialog (sheet) with a single text field and a button.

I'm using Cocoa Bindings to validate the value in the text field and
set a string field in the File's Owner.

This works fine but I would like to trigger the same sequence of
events when pressing the button. How do I do this?

    Thanks, Joel

--------------------------------------------------------------------------
for hire: mac osx device driver ninja. kernel, usb and coreaudio drivers
---------------------+------------+---------------------------------------
http://wagerlabs.com | @wagerlabs | http://www.linkedin.com/in/joelreymont
---------------------+------------+---------------------------------------
_______________________________________________

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: simulating <enter> in a text field by pressing a button
      • From: "email@hidden" <email@hidden>
  • Prev by Date: Full-time position for experienced Mac app developer in San Diego, CA
  • Next by Date: NSData, NSImageView value binding, and NSUnarchiveFromData - nothing appears
  • Previous by thread: Re: Full-time position for experienced Mac app developer in San Diego, CA
  • Next by thread: Re: simulating <enter> in a text field by pressing a button
  • Index(es):
    • Date
    • Thread