• 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: Project Find - Replace Fails Silently - Watch Movie!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Project Find - Replace Fails Silently - Watch Movie!


  • Subject: Re: Project Find - Replace Fails Silently - Watch Movie!
  • From: Dan Korn <email@hidden>
  • Date: Thu, 23 Oct 2008 11:25:34 -0500

On Oct 22, 2008, at 7:30 AM, Jerry Krinock wrote:
Does the latter setting not mean that whenever Xcode overwrites any file, it will change all line endings to unix?? I expect that this should have cleaned out any non-Unix line endings by now but I still have this problem. With hundreds of files, I don't want to manually change each of them using the Info window. My Groups have "no explicit line endings", and I suppose I could try and change them there, but those settings default to my Xcode preferences if they are not set. Setting things in children individually instead of defaulting to a parent setting will cause more confusion later.

Does anyone know, would it solve this problem to do a multi-file search/replace on my whole "Projects" folder in BBEdit and change all line endings? I'd have to be careful and do some controlled tests first.

If you're using some kind of source control, you should be able to have it set the line endings when you check out the source files. If you're not using SCM, well, you probably should. Having the SCM set the line endings, and then letting Xcode auto-detect them, works much better than setting the line ending style explicitly in Xcode, in my experience. The only problem is when you copy-and-paste code from another file with different line endings, in which case you may need to temporarily use the setting in Xcode to "fix" them.


Dan

_______________________________________________
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: 
 >Project Find - Replace Fails Silently - Watch Movie! (From: Jerry Krinock <email@hidden>)
 >Re: Project Find - Replace Fails Silently - Watch Movie! (From: Dan Korn <email@hidden>)
 >Re: Project Find - Replace Fails Silently - Watch Movie! (From: Jerry Krinock <email@hidden>)

  • Prev by Date: Re: reference to undefined typeinfo
  • Next by Date: Re: Console littered by Xcode 3.1.1 garbage collection messages
  • Previous by thread: Re: Project Find - Replace Fails Silently - Watch Movie!
  • Next by thread: IB not recognising custom view
  • Index(es):
    • Date
    • Thread