• 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
Re: XCode editor preferences
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: XCode editor preferences


  • Subject: Re: XCode editor preferences
  • From: David Ewing <email@hidden>
  • Date: Tue, 30 Nov 2004 14:51:04 -0700


On Nov 26, 2004, at 2:12 AM, Jerry wrote:




On 26 Nov 2004, at 05:16, David Dunham wrote:


Chris


> Even before you mentioned this, I was beginning to suspect that you

 had mixed line endings. My guess is that some of your file has got
 CRLF and some of it has got LF and that XCode is getting a bit
 befuddled.


This is exactly correct, and it is in the underlying Cocoa text
classes, not in Xcode. It happens only with CR-LF files, and it can be
demonstrated in TextEdit as well.


It's been fixed in Tiger so it should not appear in Xcode 2.0.


Too bad Xcode doesn't offer to fix the line endings, like the CodeWarrior IDE does... (If the original poster has CodeWarrior, he can use it to repair the file -- just open it and CodeWarrior will offer its help.)



Unfortunately, I've forgotten which source file was showing the inconsistent behaviour between consecutive lines, but opening all my files in CW doesn't produce any offers to fix inconsistent line endings. I can live with the behaviour with CR-LF files for now as long as I know that it's been fixed in Tiger. Originally I thought that the skipping of blank lines was a design 'feature' put there on purpose to be annoying, but now I know it's a bug, I'm happy (ish).

Xcode (and Project Builder before it) will fix up the line endings when a file is saved.


Dave


_______________________________________________ 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
References: 
 >Re: XCode editor preferences (From: David Dunham <email@hidden>)
 >Re: XCode editor preferences (From: Jerry <email@hidden>)

  • Prev by Date: Re: Auto-insert "}" not working
  • Next by Date: Re: Refuses to break, Useless Debugger
  • Previous by thread: Re: XCode editor preferences
  • Next by thread: Auto-insert "}" not working
  • Index(es):
    • Date
    • Thread