Hi all,
I've been developing for Windows for years, using Visual Studio since its first release, and now I'm trying to make a simple Mac app in Xcode 4. However, I'm having great trouble with finding documentation. Lots of the beginner stuff is outdated (I've heard that earlier versions of Xcode are completely different), and most of what I've found for Xcode 4 expects you to already know your way around version 3.
I've tried to get started by myself but I've hit a wall, and can't help but think that I'm overlooking something simple. I've used the Cocoa Application template and have dropped a Button onto the window, but I can't figure out how to attach code to it.
In Visual Studio I'd just double-click the button (which would open the Click handler), but in Xcode that's only for changing the text. Right-clicking opens a black menu and one of the options is "performClick", is that what I want? It doesn't seem to do anything; I've clicked, right-clicked, double-clicked... and nothing happens. I get a little "+" in the circle when I hover over it, but clicking it does nothing.
I'm obviously missing something simple here. How do I attach code to the Click event? And does anyone know of any "Xcode 4 for Visual Studio users" documentation? I've found many articles on how to make certain parts of Xcode function more like VS, but I'm really after something more "beginner friendly" before I get into trying to customise it.
Thanks
I've been developing for Windows for years, using Visual Studio since its first release, and now I'm trying to make a simple Mac app in Xcode 4. However, I'm having great trouble with finding documentation. Lots of the beginner stuff is outdated (I've heard that earlier versions of Xcode are completely different), and most of what I've found for Xcode 4 expects you to already know your way around version 3.
I've tried to get started by myself but I've hit a wall, and can't help but think that I'm overlooking something simple. I've used the Cocoa Application template and have dropped a Button onto the window, but I can't figure out how to attach code to it.
In Visual Studio I'd just double-click the button (which would open the Click handler), but in Xcode that's only for changing the text. Right-clicking opens a black menu and one of the options is "performClick", is that what I want? It doesn't seem to do anything; I've clicked, right-clicked, double-clicked... and nothing happens. I get a little "+" in the circle when I hover over it, but clicking it does nothing.
I'm obviously missing something simple here. How do I attach code to the Click event? And does anyone know of any "Xcode 4 for Visual Studio users" documentation? I've found many articles on how to make certain parts of Xcode function more like VS, but I'm really after something more "beginner friendly" before I get into trying to customise it.
Thanks