• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: ObjC error messages
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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/


  • Follow-Ups:
    • Re: ObjC error messages
      • From: Malte Tancred <email@hidden>
References: 
 >Re: ObjC error messages (From: Kurt Revis <email@hidden>)

  • Prev by Date: Re: Need help finding examples of read/writing files in Cocoa
  • Next by Date: Re: ProgressIndicator: Chasing Arrow missing in cocoa?
  • Previous by thread: Re: ObjC error messages
  • Next by thread: Re: ObjC error messages
  • Index(es):
    • Date
    • Thread