Skip navigation.
 
mlRe: Custom sheet for NSFormatter errors
FROM : Kyle Sluder
DATE : Sat Feb 02 20:24:35 2008

On Feb 2, 2008 2:13 PM, Michael Varlik <M.<email_removed>> wrote:
> How can I replace this sheet with a custom sheet or automatically perform the "discard" action without displaying a sheet at all?


Error presentation is performed by NSControl, and is governed by the
delegate method -control:didFailToFormatString:errorDescription:.  So
in my mind it would make sense to implement this delegate method and
have it perform your corrective action.  Alternatively, you can
override the delegate method to create an NSError with an appropriate
recovery attempter, and then tell the control to display it.

--Kyle Sluder

Related mailsAuthorDate
mlCustom sheet for NSFormatter errors Michael Varlik Feb 2, 20:13
mlRe: Custom sheet for NSFormatter errors Kyle Sluder Feb 2, 20:24
mlRe: Custom sheet for NSFormatter errors Michael Varlik Feb 2, 21:59