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



_______________________________________________
Bug-gnustep mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-gnustep

Reply via email to