discuss-gnustep
[Top][All Lists]
Advanced

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

Re: Loading bundle resources using GNUstep runtime 2.0, was: Hint toward


From: Patryk Laurent
Subject: Re: Loading bundle resources using GNUstep runtime 2.0, was: Hint towards solution? Re: ProjectCenter running or building
Date: Sun, 2 Feb 2020 14:25:47 -0800

Hi Johannes,

On Feb 1, 2020, at 3:22 PM, Johannes Brakensiek <johannes@brakensiek.info> wrote:

Why does it not work otherwise? Here I can just guess. There is much magic going on within NSBundle it seems. This comment beginning in line 638 seems as it is giving some hints:

Yes the logic in NSBundle.m seems quite complex. Makes me wonder if introducing a "GNUSTEP_FRAMEWORK_PATH" could help, like Java's "CLASSPATH"...? 

Using the debugger I did not see that „the standard locations“ (like …/Library/Frameworks) were tested. So currently it seems to me the fallback case is never reached. It might well be that the default way of looking up the bundle path using GSPrivateSymbolPath() returns something that seems valid but does not work or just is the path of the main bundle. We’d need to further investigate here.

Yes... it is surprising that the "standard" location isn't searched... the files are clearly there.

So this is the current result of my research late in the night. ;)

Hopefully that code wasn't too scary to be looking at before sleep ;)

Regards,
Patryk


reply via email to

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