[Top][All Lists]

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

Re: Fix, GMAppKit - Image loading

From: Georg Fleischmann
Subject: Re: Fix, GMAppKit - Image loading
Date: Fri, 11 Nov 2005 19:16:52 GMT

Hi Fred,

> could you just explain shortly why this patch is needed and also why
> this is not a general problem of the way [NSImage imageNamed:] is
> implemented? We are using imageNamed: for the GORM encoding as well, so
> if this is a general problem it should be fixed for this as well.

Yes this may be a general problem with GORM files as well.

I think [NSImage imageNamed:] is ok. It searches inside the main bundle only.  
This seems to be correct, because the OpenStep method doesn't know images  
located in other bundles as well (I wouldn't even know how the image class  
could be aware of other bundles than the main bundle. Could it?).

So my impression is that the loading of bundle images is special and in the  
responsibility of the interface loading (in this case). The interface loading  
provides the file owner ([NSBundle loadNibNamed: owner:]) which is giving the  
hint to the bundle. I'm not aware of any other way to load these images.

Best wishes,

reply via email to

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