Object error doesn't return anything...

This commit is contained in:
Bill Currie 2004-02-04 00:56:33 +00:00
parent f748b6582a
commit fb9c3e6125
2 changed files with 10 additions and 8 deletions

View file

@ -18,13 +18,13 @@
return self;
}
- (void) free
- (void) dealloc
{
local integer i;
for (i = 0; i < count; i++)
[array[i] free];
[array[i] dealloc];
obj_free (array);
[super free];
[super dealloc];
}
- (id) getItemAt: (integer) index

View file

@ -233,8 +233,9 @@ BOOL (id object) object_is_meta_class = #0;
local IMP msg;
if (!aSelector || !(msg = obj_msg_lookup (self, aSelector)))
return [self error: "invalid selector passed to %s",
sel_get_name (_cmd)];
[self error: "invalid selector passed to %s: %s",
object_get_class_name (self),
sel_get_name (aSelector)];
return msg (self, aSelector);
}
@ -244,8 +245,9 @@ BOOL (id object) object_is_meta_class = #0;
local IMP msg;
if (!aSelector || !(msg = obj_msg_lookup (self, aSelector)))
return [self error: "invalid selector passed to %s",
sel_get_name (_cmd)];
[self error: "invalid selector passed to %s: %s",
object_get_class_name (self),
sel_get_name (aSelector)];
return msg (self, aSelector, anObject);
}
@ -257,7 +259,7 @@ BOOL (id object) object_is_meta_class = #0;
local IMP msg;
if (!aSelector || !(msg = obj_msg_lookup (self, aSelector)))
return [self error: "invalid selector passed to %s",
[self error: "invalid selector passed to %s",
sel_get_name (_cmd)];
return msg (self, aSelector, anObject, anotherObject);