Re: NSValidationNumberTooSmallError with incomplete error message
Re: NSValidationNumberTooSmallError with incomplete error message
- Subject: Re: NSValidationNumberTooSmallError with incomplete error message
- From: Kaspar Fischer <email@hidden>
- Date: Thu, 8 Sep 2005 17:13:45 +0200
On 07.09.2005, at 02:17, mmalcolm crawford wrote:
On Sep 6, 2005, at 1:54 AM, Kaspar Fischer wrote:
The document "Untitled" could not be saved.
%{PROPERTY}@ is too small.
It seems that I am not passing enough information in
the user dictionary to make CoreData replace the ugly
"%PROPERTY@" by "value". Does anyboy know how to
solve this?
Core Data should retrieve the property name from the localisation
dictionary (see, for example, <http://developer.apple.com/
documentation/Cocoa/Reference/CoreData_ObjC/Classes/
NSManagedObjectModel.html#//apple_ref/doc/uid/TP30001174-BCIDJGFI>,
also <http://developer.apple.com/documentation/Cocoa/Conceptual/
NSPersistentDocumentTutorial/06_CustomisingErrors/
chapter_7_section_1.html#//apple_ref/doc/uid/TP40001799-CH228>).
How are you loading the model? There is at least one known bug
with loading the localisation dictionary that may be affecting you...
I do not have any customized localisation dictionary in use.
But please note from my original post that I myself generate
the NSError that gets wrongly displayed. For errors generated by
CoreData/Cocoa itself, the messages are correct. Therefore,
I think I must be doing something wrong when I generate
the error (again, see original post for how I do this).
Maybe I am not allowed to create NSCocoaErrorDomain-errors
myself and only Cocoa may do so?
Thanks,
Kaspar
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden