• 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: Learning the Interface Builder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Learning the Interface Builder


  • Subject: Re: Learning the Interface Builder
  • From: Matt Neuburg <email@hidden>
  • Date: Fri, 04 Nov 2011 08:14:57 -0700

On Thu, 03 Nov 2011 18:46:13 -0700, Conrad Shultz <email@hidden> said:
> A great many bugs
>early on will likely owe to sending messages to nil

It occurs to me (moving slowly but surely off-topic here) that the ARC people missed a trick with this one. One of ARC's most wonderful side-benefits is that it guarantees that any object pointer, strong or weak, that is not pointing to an object, is pointing to nil - because ARC puts it there. This suggests that there could have been a compile switch where what ARC puts there is an object that behaves like nil but also logs "You sent a message to nil" to the console. In fact, ARC could also substitute this object when you assign nil to something in your code. (It already does so much messing with your code that this little addition would be easy.) Then we could really track down those accidental send-to-nil moments.

Is that a wild and crazy idea or what?

m.

--
matt neuburg, phd = email@hidden, <http://www.apeth.net/matt/>
A fool + a tool + an autorelease pool = cool!
Programming iOS 4!
http://www.apeth.net/matt/default.html#iosbook _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Learning the Interface Builder
      • From: Amanda Rains <email@hidden>
    • Re: Learning the Interface Builder
      • From: David Duncan <email@hidden>
    • Re: Learning the Interface Builder
      • From: Jean-Denis MUYS <email@hidden>
    • Re: Learning the Interface Builder
      • From: Jean-Daniel Dupas <email@hidden>
  • Prev by Date: Re: Learning the Interface Builder
  • Next by Date: Re: Learning the Interface Builder
  • Previous by thread: Re: Learning the Interface Builder
  • Next by thread: Re: Learning the Interface Builder
  • Index(es):
    • Date
    • Thread