@@ -18,10 +18,12 @@ #import "OFMemoryNotPartOfObjectException.h" #import "OFString.h" @implementation OFMemoryNotPartOfObjectException +@synthesize pointer = _pointer, object = _object; + + (instancetype)exceptionWithPointer: (void*)pointer object: (id)object { return [[[self alloc] initWithPointer: pointer object: object] autorelease]; @@ -56,16 +58,6 @@ @"Memory at %p was not allocated as part of object of type %@, " @"thus the memory allocation was not changed! It is also possible " @"that there was an attempt to free the same memory twice.", _pointer, [_object class]]; } - -- (void*)pointer -{ - return _pointer; -} - -- (id)object -{ - OF_GETTER(_object, true) -} @end