Are you using bindings for this field? If so, your action method should send -commitEditing… to the object controller. Only then actually close the sheet if you get back YES.
On 9 Apr 2010, at 06:22, 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 protected]) > > 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: > http://lists.apple.com/mailman/options/cocoa-dev/cocoadev%40mikeabdullah.net > > This email sent to [email protected] _______________________________________________ Cocoa-dev mailing list ([email protected]) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
