• 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: nil messaging? Is it safe?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: nil messaging? Is it safe?


  • Subject: Re: nil messaging? Is it safe?
  • From: Dave Camp <email@hidden>
  • Date: Fri, 27 Sep 2002 10:02:00 -0700

Isn't the typical way to handle this to add asserts in your code to
detect this? That's what I do (at least in places where I should never
get a nil object back).

Dave

On Thursday, September 26, 2002, at 07:48 PM, Jonathan Wight wrote:

> I have no problems with the current behaviour, sending messages to NULL
> makes a lot of sense in most circumstances (esp. lazy releases). I'd
> just
> like to know when it's happening and I'm not expecting it.
>
---
It's not denial. I'm just very particular about the reality I choose to
accept. -Calvin
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: nil messaging? Is it safe? (From: Jonathan Wight <email@hidden>)

  • Prev by Date: Re: Brain Fade with NSView layout
  • Next by Date: Note: Delegates vs notifications quirk -- {addObserver,setDelegate} != {setDelegate,addObserver}
  • Previous by thread: Re: nil messaging? Is it safe?
  • Next by thread: Re: nil messaging? Is it safe?
  • Index(es):
    • Date
    • Thread