Re: [solved] Multiple validation errors. Why?
Re: [solved] Multiple validation errors. Why?
- Subject: Re: [solved] Multiple validation errors. Why?
- From: Lynn Barton <email@hidden>
- Date: Thu, 18 Mar 2010 21:04:06 -0700
On Mar 18, 2010, at 7:51 AM, Sean McBride wrote:
> On Wed, 17 Mar 2010 21:05:06 -0700, Lynn Barton said:
>
>> the app quits, I get a "multiple validation errors occured" message. The
>> console has no error messages.
>
> Stick this in your app delegate:
>
> - (NSError*)application:(NSApplication*)application
> willPresentError:(NSError*)error
> {
> if (error)
> {
> NSDictionary* userInfo = [error userInfo];
> NSLog (@"encountered the following error: %@", userInfo);
> Debugger();
> }
>
> return error;
> }
>
> --
> ____________________________________________________________
> Sean McBride, B. Eng email@hidden
> Rogue Research www.rogue-research.com
> Mac Software Developer Montréal, Québec, Canada
>
Thanks. That was just the help I needed. Console messages showed that I needed to explicitly set the value of one of the string attributes, which was defined with a minimum length of zero and a blank default value. Once I programmatically set the value to @"" the errors went away. Things are looking up.
Lynn Barton_______________________________________________
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