On Tue, Aug 17, 2010 at 03:54:06PM +0100, David Chisnall wrote:
> On 17 Aug 2010, at 15:21, Philippe Roussel wrote:
> 
> > This seems to come from NSPerformService in GSServicesManager.m line
> > 1717 : selName is "makeThumbnail:userData:error:" and
> > NSSelectorFromString(selName) return 0.
> 
> This function should not be returning 0 with a valid string, and is a simple 
> wrapper around the lower-level runtime function.  
> 
> I /think/ that the problem is that NSSelectorFromString() wraps 
> GSSelectorFromName() (for irrelevant legacy reasons - this indirection can 
> probably be deleted now), which calls sel_getUid(), not sel_registerName().  
> The former function returns 0 when the selector is not already in the 
> selector table.  The latter always returns a valid selector.
> 
> I believe that the correct fix is modifying NSSelectorFromString() to use 
> sel_registerName() and replace all other references to GSSelectorFromName() 
> with sel_registerName. The not-quite-so-correct fix is to modify 
> GSSelectorFromName() to call sel_registerName().

Ok, I'll try to use sel_registerName() and see if it changes something.

Thanks,
Philippe
-- 
Il est temps pour la race humaine d'entrer dans le systeme solaire. Dan Quayle


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

Reply via email to