Why is it so complicate? VB.NEt versus Xcode

jsn

Registered
Why Apple make things so complicated

Steps to create a button in .Net and in XCode/interface Builder.

Visual Studio:


1. Drag a button onto the window
2. Double click the button
3. Write code

Xcode/Interface Builder:


1. In Xcode, go to your window controller header file, add two lines for your outlet and action
2. Switch to Interface Builder
3. Drag a button onto the window
4. Change tab to the class browser
5. Find your window controller and re-read the file to get your updates
6. Change back to the object browser
7. Apple-drag from the window controller instance to the button
8. Select the outlet you defined before and click 'Connect'
9. Apple-drag the button onto the window controller instance
10. Select the action you defined before and click 'Connect'
11. Switch back to Xcode and into your window controller code file
12. Add the action method definition and write code
 
Instead of complaining about it here, have you written to Apple about making this process easier in the next release of Xcode? That would get more results than complaining about it here on why it doesn't work the way you want it.
 
This is the one area I would encourage Apple to work on: a better web application development environment. Web Objects is pretty cool. I've played with XCode some, but it is no Visual Studio. I'm not saying this because I believe XCode sucks, I am saying that Apple could do better.

jsn
 
I agree. As someone who came from REALbasic, the Xcode/Cocoa way of setting up an interface seems ridiculously backwards. That's not to say it's entirely without merit, but really, it could be a LOT simpler.

The good news is that you get used to it. I set up a project template so I don't have to go through the steps of creating a class, instantiating it, creating the files, etc. every time I start a new project. I still need to add actions when I add new buttons, but like I said, I've gotten used to it, and it doesn't really slow me down.

I highly recommend making yourself a project template.
 
I agree it's too complicated, and it's probably the one thing that new people to XCode/Interface Builder get held up on. I know I was confused about how to get it to work at first.
 
Back
Top