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

nstextfield question


  • Subject: nstextfield question
  • From: "Rick C." <email@hidden>
  • Date: Sat, 28 Apr 2012 00:12:26 +0800

Hi,

I might be getting sleepy and overlooking the obvious, but I have a panel with a few text fields and I'm trying to figure out what gets called after entering a value into a text field and while it's still highlighted clicking it again?  In my case when entering a value into one of my text fields (let's say "30") I append a string to that value (let's say "Days").  I do this in the action method.  In my subclass in mouseDown I make it where if the value is "30 Days" when clicking the text field I will remove the "Days" so the user can easily edit only the "30" and I append the "Days" once again in the action method.  My problem is after clicking Enter for that text field if the user would try to edit it again without that text field ever losing focus the "Days" is not removed because mouseDown doesn't get called.  And I haven't been able to figure out what does get called in this situation?  Thanks,

rc
_______________________________________________

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: nstextfield question
      • From: Charlie Dickman <email@hidden>
  • Prev by Date: Re: Save panel showing as a blank sheet
  • Next by Date: Re: nstextfield question
  • Previous by thread: Re: Save panel showing as a blank sheet
  • Next by thread: Re: nstextfield question
  • Index(es):
    • Date
    • Thread