Re: ObjC error messages
Re: ObjC error messages
- Subject: Re: ObjC error messages
- From: Malte Tancred <email@hidden>
- Date: Fri, 1 Feb 2002 16:01:01 +0100
On friday, february 1, 2002, at 03:34 , Kurt Revis wrote:
The Obj-C runtime is part of Darwin, so you could get the source and
add these features yourself, if you like.
Probably the hardest part would be getting your runtime to load instead
of the system's, but I imagine you could do some sort of dyld hackery
to do that. Or just replace /usr/lib/libobjc.dylib with your own
version, if you're just using this in-house.
From what I see in libobjc there is a funtion handling runtime errors.
This function (_error) can be overridden by an application. The default
implementation logs to syslog.
Using foundation, sending a message to an object that doesn't doesn't
implement that method yields what seems to be an NSLog where part of the
text is 'selector not recognized'. I have not been able to find this
string in any of the files in libobjc (just checked it out).
Hence, I draw the conclusion that Foundation defines it's own _error
function.
I still want the error messages suppressed unless turned on. :-)
Cheerio,
Malte
--
Malte Tancred
Computer programmer, Oops AB, Sweden
mailto:email@hidden
http://www.oops.se/