Re: nib loading error on foreign systems


James Walker
 

On 8/2/2017 10:57 AM, James Walker wrote:

I have a view controller that loads from a nib.  I only have the nib in English, no other localizations.  When I run with my normal American English setup, all is well.  But if I set the language and region to German, then after loadView has been called, half of the outlets are nil.  I don't see any error messages in the debug log, and the build log does not report any problems with the .xib file.  Any suggestions?

Sorry, I misunderstood the situation.  The Xcode debugger was lying to me about some member variables being NULL.  The real problem was an assertion failure in -[NSCell _objectValue:forString:errorDescription:] which had something to do with a text field having an NSNumberFormatter that it should not have had.

Join cocoa@apple-dev.groups.io to automatically receive all group messages.