• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Custom sheet for NSFormatter errors
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Custom sheet for NSFormatter errors


  • Subject: Re: Custom sheet for NSFormatter errors
  • From: "Kyle Sluder" <email@hidden>
  • Date: Sat, 2 Feb 2008 14:24:35 -0500

On Feb 2, 2008 2:13 PM, Michael Varlik <email@hidden> 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
_______________________________________________

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

  • Follow-Ups:
    • Re: Custom sheet for NSFormatter errors
      • From: "Michael Varlik" <email@hidden>
References: 
 >Custom sheet for NSFormatter errors (From: "Michael Varlik" <email@hidden>)

  • Prev by Date: Re: programmatically instantiating bound view/controller
  • Next by Date: Re: programmatically instantiating bound view/controller
  • Previous by thread: Custom sheet for NSFormatter errors
  • Next by thread: Re: Custom sheet for NSFormatter errors
  • Index(es):
    • Date
    • Thread