help-gnustep
[Top][All Lists]
Advanced

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

Re: Problem loading a picture.


From: Alexander Malmberg
Subject: Re: Problem loading a picture.
Date: Fri, 12 Mar 2004 02:52:38 +0100

Nicolas SANCHEZ wrote:
> I've a picture in my app directory (included in GNUmakefile),

Well, we'll need more information to help here. Could you quite the
relevant part of the GNUmakefile? Is the image really being included in
the installed .app bundle?

> when I
> exec my prog in the src dir, the picture is loaded, but after doing a
> make install and executing the prog anywhere the picture is not loaded.

How are you loading the image?

> Is it necessary to tell the complete path when loading the picture ?

Depends on how you load the image. If it's included in the app bundle
and you use NSBundle's -pathForResource* methods to find it, it should
work. NSImage's methods for named images should also find it in the app
bundle using just the name.

- Alexander Malmberg




reply via email to

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