• 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
dumb button/textfield question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

dumb button/textfield question


  • Subject: dumb button/textfield question
  • From: pmcurry <email@hidden>
  • Date: Mon, 1 Dec 2003 17:53:11 -0800

I successfully finished a small app which has an NSButton and an NSTextfield among other things. The app needs two things to run: an int and a signal to start processing. My UI design was to has the user enter an int into the NSTextfield, hit return, then click the NSButton.

But,NOOOO! The first few times the user tried it, they enter the number and clicked the button. No return in-between. Crash!

So, my question is... Can I read the value that has been entered into the field without the user being required to hit return? Iguess my only alternative, off the top of my head, would be to have the retrun key after entering the number in the textfield be the same as the button being pressed. But they made such an issue of 'I bet I could do it in Swing/Java'. The user is not convinced of Cocoa/ObjC yet. Favores Java.

Thanks.
-Phil
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: dumb button/textfield question
      • From: Public Look <email@hidden>
  • Prev by Date: Re: rounding a float
  • Next by Date: Re: rounding a float
  • Previous by thread: Re: rounding a float
  • Next by thread: Re: dumb button/textfield question
  • Index(es):
    • Date
    • Thread