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: Dave Fernandes <email@hidden>
- Date: Fri, 9 Apr 2010 10:52:19 -0400
If you read the docs for -[NSWindow endEditingFor:], it explains the correct way to do this.
On 2010-04-09, at 1:22 AM, Ben Golding wrote:
>
> 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._______________________________________________
>
> 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
_______________________________________________
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