Nicolas SANCHEZ wrote:

in the source code:


/NSImage *img = [[NSImage alloc] initWithContentsOfFile: @"CameraTransfer_header.tiff"]];/

but somebody helps me to find this (which works):

/NSImage *img = [[NSImage alloc] initWithContentsOfFile: [[NSBundle mainBundle] pathForImageResource: @"CameraTransfer_header.tiff"]];/

But I think that the first code should works also, shouldn't it ?

I am unsure if the first case should work. But did you try
[NSImage imageNamed: @"CameraTransfer_header"]; ? This is the recommended way to load an image from the current bundle. At least I think so. But the second solution is also fine.


Fred



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

Reply via email to