Why won't XCode let me select text?
July 23, 2008 2:50 PM
Subscribe
What the deuce? Why can't I type in certain areas using XCode?
I'm just getting started learning to program in Objective-C using XCode under Leopard, and I'm encountering a bizarre behavior. The I-beam cursor just doesn't work in some areas of my code.
Here's a sample:
//
// main.m
// prog1
//
#import
int main(int argc, const char *argv[])
{
int sum;
// compute result
sum = 25 + 37 - 19;
// display results
printf ("The answer is %i.\n", sum);
return 0;
}
Clicking in most of the code works like you would expect; the I-beam starts blinking, and I can edit the text as I would like.
But if I click anywhere in the area indicated in italics, the I-beam just turns into an arrow cursor until I move the mouse, the blinking text cursor doesn't appear, and I can't edit the text. It is possible to position the cursor before or after the bold area and maneuver into it with the arrow keys.
What on earth is going on here?
posted by designbot to computers & internet (4 comments total)
, sum);should not be in italics. That part of the line can be clicked normally.
posted by designbot at 2:53 PM on July 23, 2008