Re: Sending messages to nil -- anyway to detect this?
Re: Sending messages to nil -- anyway to detect this?
- Subject: Re: Sending messages to nil -- anyway to detect this?
- From: Erik Thorteran <email@hidden>
- Date: Wed, 20 Jun 2001 00:17:26 -0700
detecting all notifications is easy, but takes a HUGE bite into
performance, you can subscribe to all messages, by telling name:nil
object:nil. I am not sure whether you can send with a nil name though.
The performance is not something you want to delve into though, as
sometimes it will just crash the program. Not good.
Erik
On Tuesday, June 19, 2001, at 09:15 PM, Michael P. Rogers wrote:
Is there a mechanism in Objective-C to detect when a message has been
sent to a nil pointer? There are times when it'd be handy if the
run-time system flagged it as an error.
TIA,
Michael
-- ---------------------------------
Dr. Michael Rogers
e-mail: email@hidden
Phone: 217-424-6327
For information about Computer Science at Millikin University, visit
http://math.millikin.edu
For information about astronomy, check out
http://twincityamateurastronomers.org
_______________________________________________
cocoa-dev mailing list
email@hidden
http://www.lists.apple.com/mailman/listinfo/cocoa-dev