[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Win2000 : solution
From: |
Nicola Pero |
Subject: |
Re: Win2000 : solution |
Date: |
Fri, 11 Oct 2002 14:28:20 +0100 (BST) |
> I found a work around for the problem I submited prevoiusly.
Brilliant
> In fact, in the file NSApplication.m, line 207, the class GSBackend
> is not found in lgnustep-back.dll. I changed the line 207
> backend = [theBundle classNamed: @"GSBackend"];
> by the line
> backend = [theBundle principalClass];
>
> and now the graphical application works.
> [NSBundle classNamed: @"class"] works in the test for nsbundle
> (base/Testing) but not in NSApplication, however [NSBundle
> principalClass] works in NSApplication. Luckly, GSBackend
> is the principal class in libgnustep-back.
I'm still not sure why the NSBundle -classNamed: method didn't work [if
you can figure that out, we'd all love it! :-)]
But then, yes, why using it - what about simply changing the code to be
backend = NSClassFromString (@"GSBackend");
this should work as soon as NSBundle can load a bundle, even if the more
advanced NSBundle's features (such as -principalClass or -classNamed:) are
broken on that platform.
Can you confirm that this change would fix your problem ?