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
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 mails | Author | Date |
|---|---|---|
| Michael Varlik | Feb 2, 20:13 | |
| Kyle Sluder | Feb 2, 20:24 | |
| Michael Varlik | Feb 2, 21:59 |






Cocoa mail archive

