Re: Okay, I admit it, I miss CodeWarrior
Re: Okay, I admit it, I miss CodeWarrior
- Subject: Re: Okay, I admit it, I miss CodeWarrior
- From: James Bucanek <email@hidden>
- Date: Thu, 26 Oct 2006 13:20:50 -0700
Paul Archibald wrote on Thursday, October 26, 2006:
>Am I missing something in Xcode, or does its class hierarchy viewer/
>browser pretty much suck?
While I'll admit that is has it's limitations, I use it every day and would hardly say that it "sucks."
>I am working in Java, and I am so tired of
>having to search through a bunch of source files to determine the
>inheritance tree for some class I am working with. I thought that was
>what computers were for!
Color me confused. You have the class browser window open and set to "Hierarchy," I presume? What part of this picture are you having problems understanding? The inheritance of the class should be obvious from the hierarchy of tree. The inheritance of member functions and variables is also clearly illustrated, including nifty little tool tips that will tell you exactly what class the member is defined in, and keyboard shortcuts for jumping right to either its definition or its implementation.
If you're having problems locating a class in the tree, there's View > Reveal in Class Browser. I use this so often that I set a keyboard shortcut for it.
And don't forget another, often overlooked, Xcode gem: The class modeling tool.
>CodeWarrior was so much better at this.
People keep saying this. I guess I'm the only one who remembers all the stuff CodeWarrior wasn't good at.
>On a similar thread, I find the code completion thing very useful,
>most of the time. However, yesterday while working on a particular
>file it refused to work. In another file of the same project it works
>fine. Why would it work in one file but not another, and what can I
>do about it?
Code completion can get confused particularly while you're editing code. Incomplete/invalid syntax can throw it for a loop and sometimes (rarely) it doesn't recover. Usually correcting the syntax and saving the file will fix it.
>I cleaned and rebuilt the entire project to no avail.
Code Sense uses its own symbols database. This is completely independent of what products your project produces. Thus, cleaning or rebuilding your project will have no effect on the code sense index (and visa versa). If symbol lookup or Code Sense start acting whacky, open the Info window for the project and click on Rebuild Code Sense Index.
James Bucanek
____________________________________________________________________
Author of Beginning Xcode ISBN: 047175479X
<http://www.beginningxcode.com/>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden