ObjFW  Diff

Differences From Artifact [d83d33a394]:

To Artifact [aa49ba568a]:


24
25
26
27
28
29
30
31

32
33
34
35
36
37
38
24
25
26
27
28
29
30

31
32
33
34
35
36
37
38







-
+







@dynamic scheme, host, port, user, password, path, parameters, query, fragment;

+ (instancetype)URL
{
	return [[[self alloc] init] autorelease];
}

- init
- (instancetype)init
{
	return [super of_init];
}

- (void)setScheme: (OFString *)scheme
{
	OFString *old = _scheme;
90
91
92
93
94
95
96
97

98
99
100
101
102
103
104
105
106
107
108
109
110
90
91
92
93
94
95
96

97
98
99
100
101
102
103
104
105
106
107
108
109
110







-
+













- (void)setFragment: (OFString *)fragment
{
	OFString *old = _fragment;
	_fragment = [fragment copy];
	[old release];
}

- copy
- (id)copy
{
	OFMutableURL *copy = [self mutableCopy];

	[copy makeImmutable];

	return copy;
}

- (void)makeImmutable
{
	object_setClass(self, [OFURL class]);
}
@end