From: "Chris B. Vetter" <chrisv@web4inc.com>
To: "Yen-Ju Chen" <yjchenx@hotmail.com>
Subject: Re: NSWindowController doesn't load Gorm file.
Date: Thu, 13 Feb 2003 14:03:27 -0800
On Thu, 13 Feb 2003 16:50:47 -0500
"Yen-Ju Chen" <yjchenx@hotmail.com> wrote:
> I try to load the Gorm file using NSWindowController
> -initWithWindowNibName:Owner:.
> I have an outlet connected to the window (actually, panel).
> At this step, the window is not loaded.
> Then I try [NSWindowController window].
> The window is loaded, but [NSWindowController window] return nil.
> I think it is a bug unless I did something wrong.
> I attach the test files.
Looks more like a problem on your box. I've added some NSLogs and
get the following:
Test[63607] Failed to locate strings file Localizable
Test[63607] call -initWithWindowNibName
Test[63607] zonePanel: (nil)
Test[63607] controller window: (nil)
Test[63607] call -window
Test[63607] zonePanel: <NSPanel: 82b9908>
Test[63607] controller window: (nil)
Test[63607] call -loadWindow
Test[63607] zonePanel: <NSPanel: 82b9908>
Test[63607] controller window: (nil)
Test[63607] call -showWindow
Test[63607] zonePanel: <NSPanel: 82b9908>
Test[63607] controller window:(nil)
Test[63607] Failed to locate strings file Localizable
It opens a small window with a text field, a Cancel and an OK button.
--
Chris