bug-gnustep
[Top][All Lists]
Advanced

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

Re: NSObject -valueForKey and void methods


From: Adam Fedor
Subject: Re: NSObject -valueForKey and void methods
Date: Mon, 07 Jan 2002 08:35:48 -0700
User-agent: Mozilla/5.0 (X11; U; Linux ppc; en-US; rv:0.9.4) Gecko/20011009

Manuel Guesdon wrote:

On Sun, 30 Dec 2001 12:24:21 +0100 (CET) Manuel Guesdon <ml@sbuilders.com> 
wrote:

 >| In NSObject.m GSGetValue() doesn't support method which doesn't return a 
value.
 >| Here is the part of the code:
 >|   if (type == NULL)
 >|     {
 >|       return [self handleQueryWithUnboundKey: key];
 >|    }

Sorry, the missing part is:
          case _C_VOID:
            {
              void        (*imp)(id, SEL) =
                (void (*)(id, SEL))[self methodForSelector: sel];
(*imp)(self, sel);
            }
            val = nil;
            break;


I added this.




--
Adam Fedor, Digital Optics            | I'm glad I hate spinach, because
http://www.doc.com                    | if I didn't, I'd eat it, and you
http://www.gnustep.org                | know how I hate the stuff.




reply via email to

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