Re: [Pyobjc-dev] py2app: unable to load nib-file
Brought to you by:
ronaldoussoren
|
From: Ronald O. <ron...@ma...> - 2009-04-14 07:51:20
|
On 14 Apr, 2009, at 9:46, Johan Rydberg wrote: > Looking in the dist/Foo.app/Resources, English.lproj is there and it > contains the MainMenu.xib file. > How does the code know to look into the English.lproj directory? > > When I get back from work I'll try to assemble a small tarball with a > non-working example. Could you try if converting the ".xib" file to a ".nib" file works (IIRC you can use Save As... in Interface Builder for that, otherwise it is a property in the NIB settings)? The ".xib" files cannot be loaded directly by Cocoa but need to be compiled before they can be used. Xcode automaticly does this for you, released versions of py2app do no yet do that. The version of py2app in subversion fixes this issue for regular builds, but not for alias builds (the -A flag). Ronald > > On Tue, Apr 14, 2009 at 9:40 AM, Ronald Oussoren <ron...@ma... > > wrote: >> >> On 14 Apr, 2009, at 8:54, Johan Rydberg wrote: >> >>> Odd, because I've seen people just add English.lproj to data_files. >>> For example, look at >>> /Developer/Examples/Python/PyObjC/Cocoa/AppKit/Todo/setup.py. >> >> Adding English.lproj to data_files should just work, if it doesn't >> you have >> found a bug in py2app. >> >> Ronald >> >> |