bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSWindowController doesn't load Gorm file.


From: Yen-Ju Chen
Subject: Re: NSWindowController doesn't load Gorm file.
Date: Thu, 13 Feb 2003 17:10:04 -0500


 That is exactly the problem I have.
 If the window exists (from the outlet),
 why the [NSWindowController window] return nil ?
 It should return the same object as the outlet, right ?
 If I try to show the window using
 [NSApp runModalForWindow: [NSWindowController window]];
 The window failed to show up.

 Yen-Ju

From: "Chris B. Vetter" <address@hidden>
To: "Yen-Ju Chen" <address@hidden>
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" <address@hidden> 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


_________________________________________________________________
Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail





reply via email to

[Prev in Thread] Current Thread [Next in Thread]