Re: [Pyobjc-dev] NSError.localizedDescription() and Application Bundles
Brought to you by:
ronaldoussoren
From: Ronald O. <ron...@ma...> - 2009-07-14 13:46:13
|
The attached version of app delegate should work. You should not use "decode('utf-8')" on unicode strings that you use with Cocoa API's. Ronald On 14 Jul, 2009, at 15:34, Jean-Pierre wrote: > Le 14 juil. 09 à 13:52, Ronald Oussoren a écrit : > >> If you want to display the message in a window you should be able >> use it as is, that is use aTextField.setStringValue_ >> (error.localizedDescription()) should work just fine. > > That's what I am trying to do indeed. > >> If that doesn't work: could you please create a small program that >> shows the problem (that is, a complete Xcode project)? >> >> Ronald > > Here you are, a small Xcode 3 project with just a Text Label > displaying the error message from an NSURLConnection failure. > > - Jean-Pierre. > > <Localized.zip> > > |