On Aug 15, 2008, at 1:38 PM, Alejandro Aragon wrote: Can anyone point out a link on how to work with C++ under xcode? I come from Eclipse and it seems to me that there are many features that Eclipse has and they're not present in xcode. The bubbles with errors do not show up in the files, the refactor command is always unavailable, formatting of the code is not there, the jump to definition doesn't work for files outside the project's, to mention a few. I'm new to xcode so maybe I just need to get used to it. Does anyone have a reference to a tutorial on how to work with C++ under xcode?
If you're new to Xcode, I recommend reading the Xcode documentation.
In Xcode 3.1, there is a menu item, Help -> Xcode Workspace Guide which should get you started. "Workspace" here means, as it says in the guide, "the windows you use regularly to develop products using the Xcode application."
If you go to Help -> Documentation, you'll be taken to the main documentation window, which along the left has lists of documentation sets that you can download from Apple. You will be prompted for your ADC username and password to begin these downloads. Look especially at the Developer Tools Library documentation set.
Once you've gotten a little more familiar with Xcode in general, then it will make more sense to talk about the specific issues you have.
The bubbles with errors do not show up in the files,
In Xcode, these are called "message bubbles". You should check whether this preference is on for you in Xcode. Go to Xcode -> Preferences (also available via Cmd-comma), go to the Building pane, and look at the "Message Bubbles" setting. You'll probably want to set it to "Show during builds: On Errors and Warnings." If it's already set to that, and you still don't see any errors and warnings in your editor windows when you build -- assuming you have errors and warnings -- then that's probably a bug. You'll want to file a bug at http://bugreporter.apple.com and provide as much detail as you can about what's going on: provide a sample project and list the specific steps you took to get the results you did.
the jump to definition doesn't work for files outside the project
Please go into more detail about this. For frameworks that are referred to by a project, jumping to the definition of a framework symbol should take you to the declaration of that symbol in the framework's headers. There are other cases where Xcode does not work as well, but we'll need to know more about your situation to help you with it.
the refactor command is always unavailable
This is actually the first C++-specific issue you've mentioned. Refactoring is only supported in Xcode at this time for C and Objective-C files, not C++ or Objective-C++ or any other language.
You will probably find some areas where Xcode's C++ support is not as advanced as in some other IDEs, such as Visual Studio. Objective-C always has a bit of an edge over C++ in Xcode because it's simpler to support, and it's the language that Mac OS X and Xcode itself are written in.
That said, we are interested to hear about the ways you would like to see us improve our C++ support, and we are interested in hearing about your experiences and working style with C++ as a new Xcode user.
-- Andrew |