Ugh, made the same mistake I spent an entire lecture telling my students not to make. Feeling stupid.

This commit is contained in:
theraven 2011-02-20 19:12:39 +00:00
parent 4a3326f2fd
commit 2e3b19b735

View File

@ -295,7 +295,7 @@ BOOL class_respondsToSelector(Class cls, SEL selector)
IMP class_getMethodImplementation(Class cls, SEL name)
{
if ((cls = Nil) || (name == NULL)) { return (IMP)0; }
if ((Nil == cls) || (NULL == name)) { return (IMP)0; }
Slot_t slot = objc_get_slot(cls, name);
return NULL != slot ? slot->method : __objc_msg_forward2(nil, name);
}