Re: Interface Builder input panel fields not updated when OK button clicked
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