Differences From Artifact [8362d51987]:
- File
src/OFURL.m
— part of check-in
[494dca4ae4]
at
2011-05-14 12:26:39
on branch trunk
— Use XML for serialization.
This way, we don't need a new parser and don't use a new format. (user: js, size: 10657) [annotate] [blame] [check-ins using]
To Artifact [35c5ed8137]:
- File src/OFURL.m — part of check-in [dca3061dfc] at 2011-06-03 15:14:18 on branch trunk — Add deserialization. (user: js, size: 11209) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
283 284 285 286 287 288 289 290 291 292 293 294 295 296 | } } @catch (id e) { [self release]; @throw e; } @finally { free(cString2); } return self; } - (void)dealloc { [scheme release]; | > > > > > > > > > > > > > > > > > > > > > > > | 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 | } } @catch (id e) { [self release]; @throw e; } @finally { free(cString2); } return self; } - initWithSerialization: (OFXMLElement*)element { @try { OFAutoreleasePool *pool = [[OFAutoreleasePool alloc] init]; if (![[element name] isEqual: @"object"] || ![[element namespace] isEqual: OF_SERIALIZATION_NS] || ![[[element attributeForName: @"class"] stringValue] isEqual: [isa className]]) @throw [OFInvalidArgumentException newWithClass: isa selector: _cmd]; self = [self initWithString: [element stringValue]]; [pool release]; } @catch (id e) { [self release]; @throw e; } return self; } - (void)dealloc { [scheme release]; |
︙ | ︙ |