Xcode 4 - Connecting Outlets

Bryan picture Bryan · Jul 27, 2010 · Viewed 20.9k times · Source

This page shows how easily I can connect outlets http://developer.apple.com/technologies/tools/whats-new.html in Xcode 4, but I can't get it.

I right click and drag an outlet from the new referencing outlet circle, and into my header where the object is declared, but nothing happens.

Has anyone used this?

Thanks a lot

Answer

Martin picture Martin · Mar 16, 2011

I had the same problem with the final version of Xcode 4 and solved it by selecting the File's Owner Custom Class before using the drag & drop outlet feature like shown on the screenshot below.

Screenshot