• 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: Interface Builder input panel fields not updated when OK button clicked
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Interface Builder input panel fields not updated when OK button clicked


  • Subject: Re: Interface Builder input panel fields not updated when OK button clicked
  • From: Ben Golding <email@hidden>
  • Date: Fri, 9 Apr 2010 15:22:12 +1000

On 09/04/2010, at 15:08, Jon Pugh wrote:

> At 3:02 PM +1000 4/9/10, Ben Golding wrote:
>> I can't seem to find a way of ending editing on all the fields when the button is pressed?  Is there a way to do this?
>
> NSWindow
>
> endEditingFor:
> Forces the field editor to give up its first responder status and prepares it for its next assignment.
>
> - (void)endEditingFor:(id)object

That's great, works exactly how I'd asked.  Thanks.

If the user has entered, say, a non-numeric value in a numeric field and they then hit "OK", this closes the sheet and accepts whatever the input field can make sense of.  Is there a way to make the app go "boop" (say) and leave the sheet present until the user inputs conforming text?

	Ben.

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

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: Interface Builder input panel fields not updated when OK button clicked
      • From: Dave Fernandes <email@hidden>
    • Re: Interface Builder input panel fields not updated when OK button clicked
      • From: Mike Abdullah <email@hidden>
References: 
 >Interface Builder input panel fields not updated when OK button clicked (From: Ben Golding <email@hidden>)
 >Re: Interface Builder input panel fields not updated when OK button clicked (From: Jon Pugh <email@hidden>)

  • Prev by Date: Re: Interface Builder input panel fields not updated when OK button clicked
  • Next by Date: Re: "Toll free" bridge from NSAttributedString * to CFAttributedStringRef
  • Previous by thread: Re: Interface Builder input panel fields not updated when OK button clicked
  • Next by thread: Re: Interface Builder input panel fields not updated when OK button clicked
  • Index(es):
    • Date
    • Thread