• 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: "David W. Halliday" <email@hidden>
  • Date: Wed, 20 Jun 2001 00:29:09 -0500
  • Organization: Latin AmeriCom, formerly Latino Online

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
> ...

Well, you can always do an "assert", or any other testing within your
own code. (This has the finest degree of granularity anyway.)

It seems to be that there once was some kind of runtime or compile
time modification one could do to this behavior (causing an exception, or
something), but I don't recall now, even if such is still available.

David email@hidden


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

  • Prev by Date: Re: How do I add a "New Folder" button?
  • Next by Date: Re: Sending messages to nil -- anyway to detect this?
  • Previous by thread: Sending messages to nil -- anyway to detect this?
  • Next by thread: Re: Sending messages to nil -- anyway to detect this?
  • Index(es):
    • Date
    • Thread