开发者

Xcode 4 - Connecting Outlets

开发者 https://www.devze.com 2023-01-09 06:49 出处:网络
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.

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

精彩评论

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

关注公众号