开发者

Xcode 4 - Connecting Outlets

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


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.

Xcode 4 - Connecting Outlets


Also, fyi, for outlets the item has to be on a window, not just on the background. It will connect fine, but it will not process the outlet gesture. ort11


https://discussions.apple.com/thread/3054574?start=0&tstart=0

this worked for me


In my case I was dragging the outlet from "Outlets/delegate", but it must come from "Referencing outlets".

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜