• 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: A hillegass challenge
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: A hillegass challenge


  • Subject: Re: A hillegass challenge
  • From: Seth Willits <email@hidden>
  • Date: Thu, 3 Dec 2009 23:55:03 -0800

On Dec 3, 2009, at 11:39 PM, Michael de Haan wrote:

> I would like to ask the group if  this is "good practice"   ( I am almost certain it is not "best practice" :-)  )
>
> My question pertains to knowingly setting an object to NULL and then knowingly sending it a message as an acceptable technique.

As general answer: Yep. Happens all the time.


> ....
>
> As mentioned above, this does work, but seems ?sloppy?.

A lot of people would probably do it a little differently, but it's totally fine as you have it. Some would argue that adding more checks into your perfectly valid code is sloppy.


--
Seth Willits



_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: A hillegass challenge
      • From: Rob Keniger <email@hidden>
References: 
 >A hillegass challenge (From: Michael de Haan <email@hidden>)

  • Prev by Date: Re: How to get an italic font
  • Next by Date: Re: A hillegass challenge
  • Previous by thread: A hillegass challenge
  • Next by thread: Re: A hillegass challenge
  • Index(es):
    • Date
    • Thread