@@ -26,10 +26,13 @@ #import "OFEnumerationMutationException.h" #import "OFInvalidArgumentException.h" @implementation OFList +@synthesize firstListObject = _firstListObject; +@synthesize lastListObject = _lastListObject; + + (instancetype)list { return [[[self alloc] init] autorelease]; } @@ -73,20 +76,10 @@ [iter->object release]; [super dealloc]; } -- (of_list_object_t*)firstListObject -{ - return _firstListObject; -} - -- (of_list_object_t*)lastListObject -{ - return _lastListObject; -} - - (of_list_object_t*)appendObject: (id)object { of_list_object_t *listObject; listObject = [self allocMemoryWithSize: sizeof(of_list_object_t)];