Xcode: connecting interface elements to each other
By robin24, 15 July, 2013
App Development and Programming
I'm getting into app development with Xcode, and have started this by reading a book on Objective-C development. This way I was able to familiarize myself with this programming language, and have been exclusively developing applications for the command line for this purpose. Now it's time for graphical applications, and I've been playing around with Interface Builder for the last few days. At this point, I neither hate nor love it, but I think it can mostly be handled once you kind of figure out how things are done. For example, I like how I can arrange interface elements using coordinates in the Size Inspector, run the application and then use my trackpad to verify elements are arranged in the way that I wanted. I've also been able to find out how to connect elements to code, so that I can program and process events and such. However, I am unable to figure out how to connect elements to each other. Basically, I'd like to put a label and a slider in a window, and the slider should update the value of the label. This is an exercise from a Cocoa book that I'm currently reading, since it apparently is possible to control-drag elements to each other in order to connect them. However, control-dragging is not possible with VO, and dragging an event from the Connections Inspector to the other element also doesn't seem to work. Please, could someone help me out here and tell me what I need to do to connect 2 elements to each other?