Richard Frith-Macdonald schrieb:
> 
> On 4 May 2006, at 09:21, David Ayers wrote:
> 
>> Lloyd Dupont schrieb:
>>
>>> Problem is I would like to replace 'gnustep-base.dll' by a more
>>> multiplatform constant / invocation.
>>> One that could read 'gnustep-base.dll' on windows and
>>> 'gnustep-base.dylib' on MacOSX for example...
>>>
>>
>> http://www.gnustep.org/resources/documentation/Developer/Base/
>> Reference/index.html
>> NSBundle: +bundleForLibrary:
> 
> 
> I don't think that's what he wants ... it returns the resource bundle 
> for a named library.
> I believe he needs the path to the library itsself, so that he can  read
> the binary file for debug symbol info.

[snip]

> For the running executable, I think you can use [[NSBundle  mainBundle]
> executablePath].

I guess I was too terse but I would have assumed that:

[[NSBundle bundleForLibrary:@"gnustep-base"] executablePath]

would be what would give the expected result but indeed, this returns:

/usr/GNUstep/System/Library/Libraries/Resources/gnustep-base/./gnu-gnu-gnu/gnustep-base

for me in a flattended configuration.

Should this be considered a bug?

Cheers,
David


_______________________________________________
Discuss-gnustep mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/discuss-gnustep

Reply via email to