Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Sandy Santra

macrumors 6502
Original poster
Feb 1, 2008
350
73
Brooklyn
I'm coding a very simple Foundation Tool in Xcode. Basic stuff.

When I type in something like:

float circleArea(float theRadius)

Xcode auto-completes and converts "float theRadius" into a weird looking bubble. If I click on the bubble and hit <Enter>, it disappears! If I double click, nothing happens. If I right-click, I just get the standard right click text menu (cut, copy, paste, balance, etc.).

Does anyone know what these bubbles are?

Thanks.
 

MrFusion

macrumors 6502a
Jun 8, 2005
613
0
West-Europe
I'm coding a very simple Foundation Tool in Xcode. Basic stuff.

When I type in something like:

float circleArea(float theRadius)

Xcode auto-completes and converts "float theRadius" into a weird looking bubble. If I click on the bubble and hit <Enter>, it disappears! If I double click, nothing happens. If I right-click, I just get the standard right click text menu (cut, copy, paste, balance, etc.).

Does anyone know what these bubbles are?

Thanks.

They are very good feature of the new xCode. One click to select the entire name, another press of a button to delete them.
In the old xCode version, it didn't do that. You had to select the entire name "float theRadius" and delete it or press backspace several times.
It's a time saving thing, and a very useful one at that. You don't have to be very accurate with mouse selecting them either. Clicking anywhere on the label will do.
 

Sandy Santra

macrumors 6502
Original poster
Feb 1, 2008
350
73
Brooklyn
Uh-oh...bubble prevents build and go

They are very good feature of the new xCode. One click to select the entire name, another press of a button to delete them.
In the old xCode version, it didn't do that. You had to select the entire name "float theRadius" and delete it or press backspace several times.
It's a time saving thing, and a very useful one at that. You don't have to be very accurate with mouse selecting them either. Clicking anywhere on the label will do.

There's only one problem: this type of bubble results in Build and Go not working. I get a string of errors all through the code.

Apparently something is wrong here. If there is a bubble around "float theRadius" it prevents the code from working.

Is there something I have to change in the settings?
 

Sandy Santra

macrumors 6502
Original poster
Feb 1, 2008
350
73
Brooklyn
Does anyone know what these bubbles are called? I.e., the official Xcode name for this feature? I really need to research this and get to the bottom of it, but googling "bubbles" is not working, because that's not the real name for them.
 

kainjow

Moderator emeritus
Jun 15, 2000
7,958
7
I'm guessing you're referring either to Code Foldering or Message Bubbles. Both have options in the View menu.
 

MrFusion

macrumors 6502a
Jun 8, 2005
613
0
West-Europe
There's only one problem: this type of bubble results in Build and Go not working. I get a string of errors all through the code.

Apparently something is wrong here. If there is a bubble around "float theRadius" it prevents the code from working.

Is there something I have to change in the settings?

These bubbles are just placeholders. You are supposed to replace them with your code.
 

Sandy Santra

macrumors 6502
Original poster
Feb 1, 2008
350
73
Brooklyn
Thanks for all the responses, everyone. I found the setting (to turn it off) at: Xcode, Preferences, CodeSense, turn off the checkbox for "Insert argument placeholders for completions."

When I get more advanced, maybe I can turn this feature back on and use it.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.