Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Stupid question' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Stupid question
Authored by: hamarkus on Jan 22, '04 03:31:25PM

Apparently, TextEdit creates linefeeds when you hit enter. Do all OS X (or all Cocoa) programms do this? I thought Mac used to use carriage returns.



[ Reply to This | # ]
Stupid question
Authored by: xcgr on Jan 22, '04 05:08:03PM
Apps in Mac OS 9 and earlier tended to use CR's to end lines, aka Mac-style line endings. Most OS X apps, particularly those written to the Cocoa frameworks, tend to use UNIX-style line endings. I believe BBEdit Lite will let you specify either kind as well as DOS-style endings.

[ Reply to This | # ]
Stupid question
Authored by: hamarkus on Jan 22, '04 06:24:23PM

You are right about BBedit lite, Project builder allows it as well. But it would be nice if I could somehow check a file created with a certain app, to see what line break it is using.
I've figured out, that using the 'cat filename' command in the Terminal, shows me all file contents if linefeeds are used, and only the last line if carriage returns are used.



[ Reply to This | # ]
Stupid question
Authored by: raster on Jan 23, '04 10:02:45AM

I use flip as mentioned in this hint...



[ Reply to This | # ]