FROM : Michael Varlik
DATE : Sat Feb 02 21:59:27 2008
-------- Original-Nachricht --------
> Datum: Sat, 2 Feb 2008 14:24:35 -0500
> Von: "Kyle Sluder" <kyle.sluder+<email_removed>>
> An: "Michael Varlik" <M.<email_removed>>
> CC: <email_removed>
> Betreff: Re: Custom sheet for NSFormatter errors
> 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.
>
I alrady tried to implement the delegate method -control:didFailToFormatString:errorDescription:. With this method I can display a custom sheet, but the other message is also displayed - not as a sheet, but as a modal dialog window.
Regards,
Michael
> --Kyle Sluder
> _______________________________________________
>
> Cocoa-dev mailing list (<email_removed>)
>
> 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/m.<email_removed>
>
> This email sent to m.<email_removed>
--
GMX FreeMail: 1 GB Postfach, 5 E-Mail-Adressen, 10 Free SMS.
Alle Infos und kostenlose Anmeldung: http://www.gmx.net/de/go/freemail
DATE : Sat Feb 02 21:59:27 2008
-------- Original-Nachricht --------
> Datum: Sat, 2 Feb 2008 14:24:35 -0500
> Von: "Kyle Sluder" <kyle.sluder+<email_removed>>
> An: "Michael Varlik" <M.<email_removed>>
> CC: <email_removed>
> Betreff: Re: Custom sheet for NSFormatter errors
> 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.
>
I alrady tried to implement the delegate method -control:didFailToFormatString:errorDescription:. With this method I can display a custom sheet, but the other message is also displayed - not as a sheet, but as a modal dialog window.
Regards,
Michael
> --Kyle Sluder
> _______________________________________________
>
> Cocoa-dev mailing list (<email_removed>)
>
> 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/m.<email_removed>
>
> This email sent to m.<email_removed>
--
GMX FreeMail: 1 GB Postfach, 5 E-Mail-Adressen, 10 Free SMS.
Alle Infos und kostenlose Anmeldung: http://www.gmx.net/de/go/freemail
| 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

