diff -r 8267d5c429c4 -r bceeeabb8c34 BLIP/BLIPMessage.m --- a/BLIP/BLIPMessage.m Sat May 24 13:26:02 2008 -0700 +++ b/BLIP/BLIPMessage.m Sun May 25 12:33:50 2008 -0700 @@ -144,6 +144,22 @@ } +- (NSString*) bodyString +{ + NSData *body = self.body; + if( body ) + return [[[NSString alloc] initWithData: body encoding: NSUTF8StringEncoding] autorelease]; + else + return nil; +} + +- (void) setBodyString: (NSString*)string +{ + self.body = [string dataUsingEncoding: NSUTF8StringEncoding]; + self.contentType = @"text/plain; charset=UTF-8"; +} + + - (BLIPProperties*) properties { return _properties;