Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Mar 24, 2008, 04:05 PM   #1
tbmw
macrumors newbie
 
Join Date: Mar 2008
Code completion in Xcode 3... auto-show pop up list?

I'm trying to do what seems like it should be a simple thing... have Xcode 3.0 automatically show the completion list on a member call/access. I can make the list appear by hitting Esc, but that's annoying to constantly do. Inline completion is great, but it only shows one thing at a time, and I like to see the whole list, since I'm still trying to learn the APIs. What do I have to do to make it automatically pop up?
tbmw is offline   0 Reply With Quote
Old Mar 24, 2008, 04:38 PM   #2
Cromulent
macrumors 603
 
Cromulent's Avatar
 
Join Date: Oct 2006
Location: The Land of Hope and Glory
Quote:
Originally Posted by tbmw View Post
I'm trying to do what seems like it should be a simple thing... have Xcode 3.0 automatically show the completion list on a member call/access. I can make the list appear by hitting Esc, but that's annoying to constantly do. Inline completion is great, but it only shows one thing at a time, and I like to see the whole list, since I'm still trying to learn the APIs. What do I have to do to make it automatically pop up?
Preferences > Code Sense.
__________________
Neural Advance - Mac OS X, UNIX and Windows Development
Last.fm Profile | Extreme Metal Reviews
MP 4x 2.66Ghz Xeons / 6GB RAM / 640GB + 500GB + 750GB + 1TB HDDs / ATI Radeon 4870 / iPad 3
Cromulent is offline   0 Reply With Quote
Old Mar 24, 2008, 04:52 PM   #3
tbmw
Thread Starter
macrumors newbie
 
Join Date: Mar 2008
Quote:
Preferences > Code Sense.
This was the first place I looked... there are no options that control this behavior, the "Automatically Suggest" pop up controls inline completion, not the completion list. There are options to control what the pop up completion list displays, but not when.
tbmw is offline   0 Reply With Quote
Old Mar 24, 2008, 05:11 PM   #4
Cromulent
macrumors 603
 
Cromulent's Avatar
 
Join Date: Oct 2006
Location: The Land of Hope and Glory
Quote:
Originally Posted by tbmw View Post
This was the first place I looked... there are no options that control this behavior, the "Automatically Suggest" pop up controls inline completion, not the completion list. There are options to control what the pop up completion list displays, but not when.
Ah. In that case I'm not sure it is possible.

To be honest I'm not that impressed by Xcodes code completion, it is the one area where Visual Studio has a pretty big lead. It is even worse if all you do is straight C coding, you don't even get the popup lists with that.
__________________
Neural Advance - Mac OS X, UNIX and Windows Development
Last.fm Profile | Extreme Metal Reviews
MP 4x 2.66Ghz Xeons / 6GB RAM / 640GB + 500GB + 750GB + 1TB HDDs / ATI Radeon 4870 / iPad 3
Cromulent is offline   0 Reply With Quote
Old Mar 24, 2008, 06:13 PM   #5
tbmw
Thread Starter
macrumors newbie
 
Join Date: Mar 2008
Quote:
Ah. In that case I'm not sure it is possible.
Yeah, I figured that was probably the case, but I thought there might be a Terminal command or something someone knew. It's frustrating because I think this used to be a feature (I never have used Xcode much), given the Xcode help (which refers to preferences no longer in existence in Xcode 3, making it rather useless).

Quote:
To be honest I'm not that impressed by Xcodes code completion, it is the one area where Visual Studio has a pretty big lead. It is even worse if all you do is straight C coding, you don't even get the popup lists with that.
I've only started using Xcode the last few days, just to get a feel for it, and so far most of it has failed to impress me... I don't have any experience with Visual Studio, but I have a great deal of experience with Java development in NetBeans/IntelliJ IDEA and accomplishing basic tasks in these seems much easier (don't worry, I haven't been trying to use Xcode for Java, I've heard its atrocious). Xcode is clearly outrageously powerful, but it certainly has a bit of a learning curve...
tbmw is offline   0 Reply With Quote
Old Mar 24, 2008, 08:59 PM   #6
Monkaaay
macrumors 6502
 
Join Date: Jun 2006
Location: Richmond, VA
This is one area where Visual Studio crushes everyone else. I hope Xcode gets better in the future. I've found it a useful way to learn what you can do with the framework and classes.
Monkaaay is offline   0 Reply With Quote
Old May 26, 2008, 11:18 AM   #7
reo5th
macrumors newbie
 
Join Date: Oct 2007
I think this is what you're looking for:

http://www.reedolsen.com/?p=16

I'm a huge fan of visual studio as well - I'm just recently trying to get into Xcode.
reo5th is offline   0 Reply With Quote
Old May 26, 2008, 11:35 AM   #8
Sayer
macrumors 6502a
 
Sayer's Avatar
 
Join Date: Jan 2002
Location: Austin, TX
In Xcode 3.1 at least in the Code Sense preferences there is a popup menu next to "Automatically suggest" that lists Immediate, delayed and never.

Another aspect is that Xcode must build an index of the code in the project and the system frameworks. This takes time to do, with a low priority. If it never comes up you may need to rebuild the indexes by:
1. Get info on the project (the top-most icon in Groups and Files list).

2. In General tab at the bottom click on "Rebuild Code Sense Index" and it should rebuild the indexes (eventually).
If you never get suggestions this should fix it (in past Xcodes this tended to happen a lot for me). You may need to leave your computer running, not asleep, overnight one day to give it a chance to index everything.

I personally find code-completion incredibly annoying because it almost always tries to insert the wrong thing rather than what I actually want.
__________________
Obama is a true statesman whose experience as a state senator, half-term US Senator & guest lecturer in a Constitutional Law class has fully prepared him to take control of our nuclear arsenal.-Me
Sayer is offline   0 Reply With Quote
Old May 26, 2008, 12:12 PM   #9
Soulstorm
macrumors 68000
 
Soulstorm's Avatar
 
Join Date: Feb 2005
I think there is a misunderstanding here. The author asks for the pop up list to show up. Not just the most probable suggestion (which appears inline).

Actually, that was a feature I enjoyed when using Xcode 2.x. In Xcode 3.0, they replaced it with the inline suggestion. I wish there was some way to go back...
Soulstorm is offline   0 Reply With Quote
Old May 26, 2008, 01:36 PM   #10
Eraserhead
macrumors G4
 
Eraserhead's Avatar
 
Join Date: Nov 2005
Location: UK
Given that Xcode Preferences includes an option: "Show options in popup list" this is a bug.
__________________
Actually it does make sense. Man created god, so if we exist, He exists. - obeygiant
Eraserhead is offline   0 Reply With Quote
Old Jun 28, 2008, 01:52 PM   #11
Enuratique
macrumors 6502
 
Join Date: Apr 2008
What I do to get the pop up window (it's not automatic unfortunately, I do think this is a bug) is when it autosuggests something but I haven't hit TAB to complete it (because it's not what I want for example, or the method is overloaded) I hit the ESC key which brings up an Intellisense-like window with more appropriate matches.

HTH,

Enuratique
__________________
24" Aluminum iMac, 2.8 GHz, 4 GB RAM, 500 GB HD, 8800 GS; Black 32GB iPhone 4; Black 30GB 5th Gen iPod
Enuratique is offline   0 Reply With Quote
Old Feb 26, 2010, 12:01 PM   #12
nfarina
macrumors newbie
 
Join Date: Feb 2010
Here is a plugin that attempts to address this issue:

http://code.google.com/p/xcode-auto-assistant/
nfarina is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Xcode pop up? njharris97 iPhone/iPad Programming 2 Nov 1, 2013 06:21 PM
Auto-updated apps still show up in App Store update list days after updating? Mazda 3s iOS 7 22 Sep 25, 2013 04:31 AM
Preventing auto mounting/pop-up potatis OS X 0 Apr 7, 2013 11:19 AM
Can't set up pop email account on Mail. It auto chooses IMAP... elglasso Mac Applications and Mac App Store 1 Aug 27, 2012 05:30 PM

Forum Jump

All times are GMT -5. The time now is 11:57 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC