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: Manuel Guesdon
Subject: Re: NSObject -valueForKey and void methods
Date: Sun, 30 Dec 2001 14:26:02 +0100 (CET)

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;


--
______________________________________________________________________
Manuel Guesdon - OXYMIUM <mguesdon@oxymium.net>
14 rue Jean-Baptiste Clement  -  93200 Saint-Denis  -  France
Tel: +33 1 4940 0999  -  Fax: +33 1 4940 0998




reply via email to

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