-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathItem.m
51 lines (47 loc) · 1.08 KB
/
Item.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
//
// Item.m
// RSSreader
//
// Created by Dmitry on 11.03.14.
// Copyright (c) 2014 MegaFon. All rights reserved.
//
#import "Item.h"
@implementation Item
-(id)init
{
if (self=[super init])
{
[self setTitle:[[NSMutableString alloc]init]];
[self setLink:[[NSMutableString alloc]init]];
[self setCategory:[[NSMutableString alloc]init]];
[self setDescription:[[NSMutableString alloc]init]];
[self setPubDate:[[NSMutableString alloc]init]];
[self setGuid:[[NSMutableString alloc]init]];
}
return self;
}
-(void)appendTitleFrom:(NSString *)string
{
[[self title]appendString:string];
}
-(void)appendLinkFrom:(NSString *)string
{
[[self link]appendString:string];
}
-(void)appendDescriptionFrom:(NSString *)string
{
[[self description]appendString:string];
}
-(void)appendCategoryFrom:(NSString *)string
{
[[self category]appendString:string];
}
-(void)appendGuidFrom:(NSString *)string
{
[[self guid]appendString:string];
}
-(void)appendPubDate:(NSString *)string
{
[[self pubDate]appendString:string];
}
@end