From fee58dbb7a20815be34c94d531aa72500e619af6 Mon Sep 17 00:00:00 2001 From: CaS Date: Fri, 29 Nov 2002 08:01:08 +0000 Subject: [PATCH] Improve comments git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@15175 72102866-910b-0410-8b05-ffd578937521 --- Source/Additions/GSMime.m | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Source/Additions/GSMime.m b/Source/Additions/GSMime.m index 65067779d..6bc385f97 100644 --- a/Source/Additions/GSMime.m +++ b/Source/Additions/GSMime.m @@ -4134,6 +4134,15 @@ static NSCharacterSet *tokenSet = nil; *

Convenience method to set the content of the document along with * creating a content-type header for it. *

+ *

The type parameter may be a simple common content type (text, + * multipart, or application), in which case the default subtype for + * that type is used. Alternatively it may be full detail of a + * content type header value, which will be parsed into 'type', 'subtype' + * and 'parameters'.
+ * NB. In this case, if the parsed data contains a 'name' parameter + * and the name argument is non-nil, the argument value will + * override the parsed value. + *

*

You can get the same effect by calling -setContent: to set the document * content, then creating a [GSMimeHeader] instance, initialising it with * the content type information you want using @@ -4144,7 +4153,7 @@ static NSCharacterSet *tokenSet = nil; * combination of content and type/subtype you may use ... so you may want * to use the more primitive methods in order to bypass these checks if * you are using unusual type/subtype information or if you need to provide - * additional paramters in the header. + * additional parameters in the header. *

*/ - (void) setContent: (id)newContent