Ok Thanks you both David and Niels to make thing clear. So now if I understand correctly I should copy the LKSendMessage function and friends. Or could I import the LanguageKit framwork to OSX and us it as if it were part of OSX? By that I mean that LanguageKit use OSX frameworks instead of the gnustep one's.
Neils the objc_msgLookup sound great since it could be even optimize in gnu-smalltalk with a cache per object, but I couldn't find objc_msgLookup in the OSX runtime. ----- Message d'origine ---- > De : Niels Grewe <[email protected]> > À : Discussion list for Ã?toilé desktop environment <[email protected]> > Envoyé le : Mar 1 mars 2011, 14h 19min 52s > Objet : Re: [Etoile-discuss] Binding for GNUstep/Etoile > > Hi again, > > On Tue, Mar 01, 2011 at 01:10:35PM +0000, Mathieu Suen wrote: > > > > There is still on issue. On OSX there is the obc_msgSend function that is > > missing in the gnustep-base runtime. > > I guess gnustep is using the gcc libobjc in other to send a message to an > > object. > > With the GCC and GNUstep runtimes, you don't have objc_msgSend but > instead you should use objc_msgLookup(), which returns a function > pointer to the implementation fo the method. If you would on OS X do > > id return = objc_msgSend(obj, selector, argument); > > that would become something like this: > > IMP message = objc_msgLookup(obj, selector); > id return = message(obj, selector, argument); > > Hope that helps, > > Niels > > _______________________________________________ > Etoile-discuss mailing list > [email protected] > https://mail.gna.org/listinfo/etoile-discuss > _______________________________________________ Etoile-discuss mailing list [email protected] https://mail.gna.org/listinfo/etoile-discuss
