[Biococoa-dev] Base test

Alexander Griekspoor mek at mekentosj.com
Fri Aug 13 15:34:48 EDT 2004


That's even nicer! So should we file a bug against the documentation? 
:-)
A.

Op 13-aug-04 om 21:30 heeft Jim Balhoff het volgende geschreven:

>
> On Aug 13, 2004, at 3:22 PM, Jim Balhoff wrote:
>
>> On Aug 13, 2004, at 3:15 PM, Alexander Griekspoor wrote:
>>
>>>> A classes are objects, it seems like it would work.
>>>
>>> I'm not so sure about that, but probably you are right. Anyway, the 
>>> description says:
>>>
>>> objc_msgSend
>>>
>>> Sends a message with a simple return value to an instance of a class.
>>>
>>> So I'm afraid it doesn't work on the class itself. I couldn't get it 
>>> to work either, but perhaps I'm doing something else wrong here...
>>>
>>>
>>
>> It works, try this:
>>
> <snip code>
> Actually you can just send the performSelector: message to the class.  
> I wasn't sure if class objects conformed to the NSObject protocol, but 
> if you try sending the message [MyClass performSelector:message], you 
> get the same result as the objc_msgSend() stuff.
>
> - Jim
>
> ____________________________________________
> James P. Balhoff
> Dept. of Biology
> Duke University
> Durham, NC 27708-0338
> USA
>
*********************************************************
                     ** Alexander Griekspoor **
*********************************************************
               The Netherlands Cancer Institute
               Department of Tumorbiology (H4)
          Plesmanlaan 121, 1066 CX, Amsterdam
                    Tel:  + 31 20 - 512 2023
                   Fax:  + 31 20 - 512 2029
                   AIM: mekentosj at mac.com
                  E-mail: a.griekspoor at nki.nl
               Web: http://www.mekentosj.com

               4Peaks - For Peaks, Four Peaks.
        2004 Winner of the Apple Design Awards
                Best Mac OS X Student Product
              http://www.mekentosj.com/4peaks

*********************************************************




More information about the Biococoa-dev mailing list