• 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: Sending messages to nil -- anyway to detect this?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Sending messages to nil -- anyway to detect this? (From: "Michael P. Rogers" <email@hidden>)

  • Prev by Date: email auto-reply program
  • Next by Date: Re: How to setup NSMatrix with IB?
  • Previous by thread: Re: Sending messages to nil -- anyway to detect this?
  • Next by thread: Re: Sending messages to nil -- anyway to detect this?
  • Index(es):
    • Date
    • Thread