How to get a compiler warning when an IBOutlet is disconnected

Posted by Vincent Gable on Stack Overflow See other posts from Stack Overflow or by Vincent Gable
Published on 2010-03-15T16:46:38Z Indexed on 2010/03/15 16:49 UTC
Read the original article Hit count: 353

How can I have Xcode warn me if an IBOutlet of one of my objects is not hooked up to anything in a NIB?

I can check that outlets are connected at runtime by adding assert(ofEveryOutlet); in awakeFromNib or viewDidLoad. But it's not as useful, or reliable, as having the compiler do the checking for me.

© Stack Overflow or respective owner

Related posts about xcode

Related posts about interface-builder