gnustep-dev
[Top][All Lists]
Advanced

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

Re: Problem with services (DO ?) with svn trunk


From: Philippe Roussel
Subject: Re: Problem with services (DO ?) with svn trunk
Date: Tue, 17 Aug 2010 17:01:01 +0200
User-agent: Mutt/1.5.17+20080114 (2008-01-14)

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




reply via email to

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