bug-gnustep
[Top][All Lists]
Advanced

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

NSBrowser's matrix lost its window


From: Stefan Urbanek
Subject: NSBrowser's matrix lost its window
Date: Sat, 22 Mar 2003 23:16:53 +0100

Hi,

I have a .gorm file with a window. I need to have my own sublcass of NSPanel, 
so i need to replace archived one with my new one. I load .gorm file where the 
window is connected to owner's outlet _panel. The window contains a NSBrowser 
with 'allows multiple selection' disabled.

I move content view from the window (_panel) to self (being a subclass of 
NSPanel) like this:

   view = RETAIN([_panel contentView]);
   [_panel setContentView:nil];
   [self setContentView:view];
   RELEASE(view);
   RELEASE(_panel);

Now, when i click on some browser element, I get:

Uncaught exception NSInternalInconsistencyException, reason: NSView.m:1550  
Assertion failed in NSMatrix(instance), method lockFocusInRect:.  
NSInternalInconsistencyException

Then I have traced the problem down, to the -NSView viewWillMoveToWindow:. 
NSMatrix has lost its window, but it did not get the new one.

When I did;
   [myBrowser reloadColumn:0];
everything was ok, because new matrix was created.
I suspect it to be some NSMatrx/NSBrowser bug. Experienced behaviour was 
unexpected, i think.

Stefan Urbanek





reply via email to

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