• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
xcode 2.2 editor problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

xcode 2.2 editor problem


  • Subject: xcode 2.2 editor problem
  • From: Robert Dell <email@hidden>
  • Date: Fri, 04 Nov 2005 06:20:39 -0500

i have a problem with the xcode editor.  when i copy and paste this block, it gets reformatted pretty badly.  what the heck is going on here?

--- clip ---  copy this
                case writeop:
                  {
                    while (currentOp == writeop)
                      {
                      [buildString setString: [[[myAllScriptsArray objectAtIndex: i] objectForKey: @"theScript"] objectAtIndex: j]];
                      if ([myLineArray count] > 0)
                        {
                        [buildString setString: [buildString substringFromIndex: 6]];
                        [buildString replaceOccurrencesOfString:@"\\n" withString: @"\n" options: NSCaseInsensitiveSearch range: NSMakeRange(0,[buildString length])];
                        [buildString replaceOccurrencesOfString:@"\\r" withString: @"\r" options: NSCaseInsensitiveSearch range: NSMakeRange(0,[buildString length])];
                        [buildString replaceOccurrencesOfString:@"\\t" withString: @"    " options: NSCaseInsensitiveSearch range: NSMakeRange(0,[buildString length])];
                        [buildString replaceOccurrencesOfString:@"\\\"" withString: @"\"" options: NSCaseInsensitiveSearch range: NSMakeRange(0,[buildString length])];
                        [myLineArray replaceObjectAtIndex: 0 withObject: [NSMutableString stringWithString: buildString]];
                        [self replaceVariablesInLine: 0 scriptnumber: i];
                        [buildString setString: [[myAllScriptsArray objectAtIndex: i] objectForKey: @"oututfiledata"]];
                        [buildString appendString: [myLineArray objectAtIndex: 0]];
                        [buildString appendString: @"\n"];
                        [[myAllScriptsArray objectAtIndex: i] setObject: [NSMutableString stringWithString: buildString] forKey: @"oututfiledata"];
                        };
                      j++;
                      currentOp = unknownop;
                      if (j < [[[myAllScriptsArray objectAtIndex: i] objectForKey: @"theScript"] count])
                        {
                        [myScriptCommandLine setString: [[[myAllScriptsArray objectAtIndex: i] objectForKey: @"theScript"] objectAtIndex: j]];
                        [self breakDownLine: myScriptCommandLine expandVariables: YES scriptnumber: i];
                        currentOp = [self getop: [NSString stringWithString: [myLineArray objectAtIndex: 0]]];
                        [myLineArray removeObjectAtIndex: 0];
                        }
                      };
                    j--;
                    break;
                  };
--- clip ---

--- clip --- it gets reformatted to this
                case writeop:
                  {
                    while (currentOp == writeop)
                      {
                      [buildString setString: [[[myAllScriptsArray objectAtIndex: i] objectForKey: @"theScript"] objectAtIndex: j]];
                      if ([myLineArray count] > 0)
                        {
                        [buildString setString: [buildString substringFromIndex: 6]];
                        [buildString replaceOccurrencesOfString:@"\\n" withString: @"\n" options: NSCaseInsensitiveSearch range: NSMakeRange(0,[buildString length])];
                        [buildString replaceOccurrencesOfString:@"\\r" withString: @"\r" options: NSCaseInsensitiveSearch range: NSMakeRange(0,[buildString length])];
                        [buildString replaceOccurrencesOfString:@"\\t" withString: @"    " options: NSCaseInsensitiveSearch range: NSMakeRange(0,[buildString length])];
                        [buildString replaceOccurrencesOfString:@"\\\"" withString: @"\"" options: NSCaseInsensitiveSearch range: NSMakeRange(0,[buildString length])];
  [myLineArray replaceObjectAtIndex: 0 withObject: [NSMutableString stringWithString: buildString]];
  [self replaceVariablesInLine: 0 scriptnumber: i];
  [buildString setString: [[myAllScriptsArray objectAtIndex: i] objectForKey: @"oututfiledata"]];
  [buildString appendString: [myLineArray objectAtIndex: 0]];
  [buildString appendString: @"\n"];
  [[myAllScriptsArray objectAtIndex: i] setObject: [NSMutableString stringWithString: buildString] forKey: @"oututfiledata"];
                        };
  j++;
  currentOp = unknownop;
  if (j < [[[myAllScriptsArray objectAtIndex: i] objectForKey: @"theScript"] count])
{
    [myScriptCommandLine setString: [[[myAllScriptsArray objectAtIndex: i] objectForKey: @"theScript"] objectAtIndex: j]];
    [self breakDownLine: myScriptCommandLine expandVariables: YES scriptnumber: i];
    currentOp = [self getop: [NSString stringWithString: [myLineArray objectAtIndex: 0]]];
    [myLineArray removeObjectAtIndex: 0];
}
                      };
j--;
break;
                  };
--- clip ---

_______________________________________________
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


  • Follow-Ups:
    • Re: xcode 2.2 editor problem
      • From: Dave MacLachlan <email@hidden>
  • Prev by Date: Re: gcc4.0 and -Wcast-qual
  • Next by Date: Filling variables in the debugger
  • Previous by thread: Re: gcc4.0 and -Wcast-qual
  • Next by thread: Re: xcode 2.2 editor problem
  • Index(es):
    • Date
    • Thread