Index: src/OFThread.h ================================================================== --- src/OFThread.h +++ src/OFThread.h @@ -72,11 +72,11 @@ /** * \param obj An object that is passed to the main method as a copy or nil * \return A new autoreleased thread */ -+ threadWithObject: (OFObject *)obj; ++ threadWithObject: (id)obj; /** * Sets the Thread Local Storage for the specified key. * * The specified object is first retained and then the object stored before is @@ -126,11 +126,11 @@ /** * \param obj An object that is passed to the main method as a copy or nil * \return An initialized OFThread. */ -- initWithObject: (OFObject *)obj; +- initWithObject: (id)obj; /** * The main routine of the thread. You need to reimplement this! * * It can access the object passed to the threadWithObject or initWithObject Index: src/OFThread.m ================================================================== --- src/OFThread.m +++ src/OFThread.m @@ -61,11 +61,11 @@ if (!of_tlskey_new(&thread_self)) @throw [OFInitializationFailedException newWithClass: self]; } -+ threadWithObject: (OFObject *)obj ++ threadWithObject: (id)obj { return [[[self alloc] initWithObject: obj] autorelease]; } + setObject: (OFObject*)obj @@ -139,11 +139,11 @@ { @throw [OFNotImplementedException newWithClass: isa selector: _cmd]; } -- initWithObject: (OFObject *)obj +- initWithObject: (id)obj { self = [super init]; object = [obj retain];