I am trying to create and show a new window in my simple Cocoa application:
myWindow = [[MyWindowController alloc] initWithWindowNibName:@"MyWindow" owner:self]; [myWindow showWindow:self];
It works well with the base nib file without localization, but as soon as I turn on localization for this specific nib file (using the Xcode โlocalizeโ option available to validate the form file), the application gives me this error when executing the code above
- [MyWindowController loadWindow]: Failed to load nib window file 'AuthWindow'.
Should I change the way my window controller initializes when using localized handpieces? It fails only when the nib containing the window is localized (with only one language - in English), when the localization is not configured - the window is loaded and displayed on the screen as it should. I canโt find the right answer, I'm new to Cocoa on OSX, but have some experience with CocoaTouch and iOS development.
source share