Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Dot completion in Xcode?



Hi David,

I've just tried to create a new Java project in Xcode 2.1, and code completion works fine for me.

But I had the same problems that you have when I was using Xcode 1.5.
As far as I remember there was a problem related to indexing a Xcode Java documentation.
The Xcode couldn't index the documentation, so the code completion wasn't working.


So first of all, open the Xcode Documentation (Help -> Documentation) and try to find a Java class (java.lang.System for example) or any Java-related topic.
If it won't work, it would mean that you should reindex (or better reinstall) the Xcode documentation.
Simply go to the Xcode -> Preferences -> Documentation, press Check Now, download the latest version (~200 MB), and install it.
You could also install the original documentation from the Xcode disk image by running the Xcode installer (don't forget to include Java documentation which is disabled by default).


Hopes this helps.
Good luck!
Jakub

On Aug 31, 2005, at 6:41 PM, david wrote:


At 20.13 +0200 05-08-27, david wrote/05-08-27, 20.13 +0200 skrev david



What kind of code completion for Java does Xcode 2.1 actually support?

I want something like this to work:

Vector v = new Vector;
v.[and here I want a pop-up with a list of all available functions]

However, all I get, when I press ESC, is a list of word that begins with the letter(s) I already have typed. In the example above, if I press ESC after I have typed v it suggest:

v
var
void
volatile
Vector

This is rather useless. If I press ESC after typing the dot, nothing happens.

Even more ridiculous is this:

System.out.println("abc");

ESC works while I am typing 'System', but nothing happens when I am at any of the dots. And most stupid of all, when I am typing 'out' and press ESC I get 'No completions found'! :-(

I have RTFM:ed about code sense but it doesn't say anything about dot-completion. However, I am pretty sure that functionality similar to dot-completion is available for Cocoa/Objective-C.





_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.