Re: Code completion for STL class members
Re: Code completion for STL class members
- Subject: Re: Code completion for STL class members
- From: Mike Jackson <email@hidden>
- Date: Mon, 25 Sep 2006 09:12:23 -0400
- Thread-topic: Code completion for STL class members
I have actually switched to Eclipse with the CDT plug-in for my C++ coding.
It has code completion that actually works for C++. The build system is
still based on Make, although I have figured out how to hack in Cmake
support.
The debugger isn't too bad though at times I have had some launching
problems with it so I switch back to Xcode for debugging.
This isn't meant as a put down to the Xcode team. They do an out standing
job for the took they are creating and the type of language that they are
targeting. If you are creating Objective-C based applications that use lots
of Apple technologies then Xcode/Objective-C is the fastest way to develop
code on the planet. I wish I code write Obj-C all day long.
If how ever your language of choice happens to be C++ then you _might_
enjoy Eclipse. I say _might_ because there are some _Very_ big reasons to
stick with Xcode under certain circumstances. The biggest, IMHO, is if you
are still on a PPC machine. Since Eclipse is written in java there is more
overhead than Xcode and Eclipse tends to run a bit slower on things like
Code Completion. I found that the code completion on a 1.6 GHz G4 powerbook
was painfully slow along with some other aspects of Eclipse. Trying the same
thing on a 2GHz MacBook Pro was night and day different. The MBP was very
quick and coding became not so much a problem.
The other downside to eclipse is the indexer. While good it can take some
time to index large projects. But once the indexing is complete, updates are
relatively quick.
I would urge you to file radar enhancements for Xcode to let the Xcode team
know what you are finding problematic with Xcode. Try eclipse and see if it
is right for you. Keep Xcode around just in case you need it.
Mike Jackson
On 9/25/06 7:38 AM, "John Deane" <email@hidden> wrote:
> I would truly like this answered too.
>
> I have all but given up expecting CodeSenee to work with C++/STL in
> any reliable fashion (if at all). In desperation I have started to
> look at Eclipse (http://www.eclipse.org/) as this does include an
> indexer that appears to work more reliably than anything I've seen
> from Xcode.
>
> I hope Xcode 3 resolves these issues but I'm not holding out for it.
> One could be mistaken to believe that Apple are not concerned with C+
> +/STL development under Xcode. It's at times like this that I wish
> VisualStudio (surely Microsoft's best product) were available for OS X.
>
> John,
> Frustrated Xcode user.
>
>
> On 13 Sep 2006, at 16:12, Brian Tanner wrote:
>
>> Hi guys, been racking my brain trying to get code completion work
>> in a way that its most helpful to me, but not having much luck.
>> Here is a shortish snippet of code:
>>
>> #include <vector>
>> using namespace std;
>>
>>
>> class test{
>> int myInt;
>> vector<int> myVector;
>>
>> void testCodeComplete();
>> };
>>
>> void test::testCodeComplete(){
>> //this->
>> //This shows myInt, myVector, and testCodeComplete when I do code
>> completion, but myVector is without a type
>>
>> // myVector.
>> // .... or
>> // this->myVector.
>> //This comes up with nothing for code completion :(
>>
>>
>> vector<int> testVector;
>> //testVector.
>> //This comes up for everything with code completion
>>
>> }
>> //End code
>>
>>
>> So, as you can see... code completion works on vectors, just not on
>> vectors that are members of my class. I assume this is probably
>> because codesense can't tell the type of the member "myVector" from
>> within testCodeComplete.
>>
>> Does anyone have any idea if/how this can be fixed?
>> --
>> Brian Tanner
>> Graduate Student
>> University of Alberta
>> email@hidden
>>
>>
>>
>> _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> Xcode-users mailing list (email@hidden)
>> Help/Unsubscribe/Update your Subscription:
>> 40clavius.demon.co.uk
>>
>> This email sent to email@hidden
>
_______________________________________________
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