Edit AllPages

CocoaDev is probably not the best place to ask this question since it isn’t strictly Cocoa related. But, having said that, people here are friendly and have always helped me out.

I’m attempting to write a nice credits.rtf for my About… box – in it I want to provide links to the various open-source project sites which supplied libraries I use. I figured it would be the Right Thing; now, the trouble is, I have no freaking idea how to make textEdit do two things:

*Set margins *Make href links clickable

I’ve read the help files for TextEdit and with regards to setting margins, I follow the instructions ( dragging the down-facing ruler arrows ) and this resultedin exactly nothing. And with regards to clickable links, I have no idea at all. There’s no “Make URL…” menu item or command that I can find, and TextEdit doesn’t seem smart enough to detect and clickable-ify obvious href:// type links.

Any ideas?


You can use an index.html for your About box, and it happily lets you make hyperlinks. Dunno about margins, but it does support stuff like <blockquote>.

If it’s using WebKit, rather than the old HTMLRendering.framework, you could use CSS for margins.

Lord knows what the standard about box uses (which is the crux of the question here).

I, too, have been frustrated by margins. I have been able to do left and right, but TextEdit seemingly has nothing for top and bottom.

You can always add it yourself. An RTF document is just plain text, and the format is on Microsoft’s web site.

True. But that’s like saying a program which edits a filetype is not responsible for doing it correctly, provided a low-level specification is available. I’ve spent plenty of time decoding file formats; hell, I wrote a photoshop file parser/loader ( & general API ) for BeOS’s image services ( ) – I’m comfortable decoding file formats and I’m comfortable with a Hex editor.

But, I am not interested in decoding the RTF format so I can add margins when I have more important work to do. TextEdit should work correctly, or else Apple should remove the margin setter from the ruler.


I’m not sure if I will be answering the question, but the answer for the margins looks obvious. You just use the square thing on TextEdit’s ruler, as well as the triangle thing on the ruler. As for the hyperlinks, you can go into iChat and copy out a hyperlink, as noted in the following Mac OS X hint: – RossDude

The URL’s in TextEdit are just plain simple RTF.

\f0\fs24 \cf0 visit CocoaDev! - {\field{*\fldinst{HYPERLINK “”}}{\fldrslt CocoaDev

Microsoft Word and TextEdit both recognize it, but not AppleWorks (if you were curious) :) – KevinWojniak

If you go to OSXHINTS and search for TextEdit you will find a discussion about how to customize TextEdit for changing margins. Let us know how you do… Richard

Inablility to click links in credits rtf file is a panther bug, and the workaround is to use an html file instead.

(Ali is an Apple employee)

If it’s using WebKit, rather than the old HTMLRendering.framework, you could use CSS for margins.

Sadly, it does not use WebKit. You could take a shot at doing margins the old-fashioned way in html, maybe that would work..


[Later] Oops, looks like this is an old question resurrected.