• 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: How are we supposed to paste text in XCode?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How are we supposed to paste text in XCode?


  • Subject: Re: How are we supposed to paste text in XCode?
  • From: Markus Hitter <email@hidden>
  • Date: Fri, 9 Jun 2006 14:11:07 +0200


Am 09.06.2006 um 05:08 schrieb Jim Wintermyre:

As mentioned above, this is a major hassle with the source control system when the file to be checked in has the wrong line endings. It's not noted when you check the file in (only when adding a new file), and if you check in a file this way, it comes back all screwed up as you might expect.

I'd expect my source control system to give me back exactly what I've checked in.



Any idea what might be causing this?

What stops you from changing all source and header files from \r to \n as part of the transition to Xcode? This will match Mac OS X's native line endings as well as the line endings Xcode's maintainers use (at least it matches what all the example code I've looked into uses).


It can be as easy as

	find /my/path/to/source -type file -name \*.h | while read F; do
		mv "$F" tempfile
		cat tempfile | tr '\r' '\n' >"$F"
	done
	rm -f tempfile

Repeat accordingly for other file suffixes.

Obviously, Mac line endings will die in the long term as there's no longer a platform using \r as native line endings.


Markus

- - - - - - - - - - - - - - - - - - -
Dipl. Ing. Markus Hitter
http://www.jump-ing.de/




_______________________________________________ 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: How are we supposed to paste text in XCode?
      • From: Jim Wintermyre <email@hidden>
    • Re: How are we supposed to paste text in XCode?
      • From: Jerry <email@hidden>
References: 
 >Re: How are we supposed to paste text in XCode? (From: Jim Wintermyre <email@hidden>)

  • Prev by Date: Re: Custom icon for bundle?
  • Next by Date: Re: Custom icon for bundle?
  • Previous by thread: Re: How are we supposed to paste text in XCode?
  • Next by thread: Re: How are we supposed to paste text in XCode?
  • Index(es):
    • Date
    • Thread