@@ -27,10 +27,12 @@ #import "OFArray.h" #import "OFMalformedXMLException.h" @implementation OFXMLElementBuilder +@synthesize delegate = _delegate; + + (instancetype)elementBuilder { return [[[self alloc] init] autorelease]; } @@ -53,20 +55,10 @@ [_stack release]; [super dealloc]; } -- (id )delegate -{ - return _delegate; -} - -- (void)setDelegate: (id )delegate -{ - _delegate = delegate; -} - - (void)parser: (OFXMLParser*)parser foundProcessingInstructions: (OFString*)pi { OFXMLProcessingInstructions *node = [OFXMLProcessingInstructions processingInstructionsWithString: pi];