Index: src/OFApplication.h ================================================================== --- src/OFApplication.h +++ src/OFApplication.h @@ -119,13 +119,13 @@ void (*SIGUSR2Handler)(id, SEL); #endif } #ifdef OF_HAVE_PROPERTIES -@property (readonly, assign) OFString *programName; -@property (readonly, assign) OFArray *arguments; -@property (readonly, assign) OFDictionary *environment; +@property (readonly, copy, nonatomic) OFString *programName; +@property (readonly, copy, nonatomic) OFArray *arguments; +@property (readonly, copy, nonatomic) OFDictionary *environment; @property (assign) id delegate; #endif /** * \brief Returns the only OFApplication instance in the application. Index: src/OFApplication.m ================================================================== --- src/OFApplication.m +++ src/OFApplication.m @@ -252,21 +252,21 @@ *argv_ = argv; } - (OFString*)programName { - return programName; + OF_GETTER(programName, NO) } - (OFArray*)arguments { - return arguments; + OF_GETTER(arguments, NO) } - (OFDictionary*)environment { - return environment; + OF_GETTER(environment, NO) } - (id )delegate { return delegate; Index: src/OFHTTPRequest.m ================================================================== --- src/OFHTTPRequest.m +++ src/OFHTTPRequest.m @@ -560,16 +560,16 @@ return statusCode; } - (OFDictionary*)headers { - return [[headers copy] autorelease]; + OF_GETTER(headers, YES) } - (OFDataArray*)data { - return [[data retain] autorelease]; + OF_GETTER(data, YES) } @end @implementation OFObject (OFHTTPRequestDelegate) - (void)request: (OFHTTPRequest*)request Index: src/OFNumber.h ================================================================== --- src/OFNumber.h +++ src/OFNumber.h @@ -94,10 +94,14 @@ float float_; double double_; } value; of_number_type_t type; } + +#ifdef OF_HAVE_PROPERTIES +@property (readonly) of_number_type_t type; +#endif /** * \brief Creates a new OFNumber with the specified BOOL. * * \param bool_ A BOOL which the OFNumber should contain Index: src/OFTimer.h ================================================================== --- src/OFTimer.h +++ src/OFTimer.h @@ -39,10 +39,14 @@ of_timer_block_t block; #endif BOOL isValid, done; OFCondition *condition; } + +#ifdef OF_HAVE_PROPERTIES +@property (readonly, retain) OFDate *fireDate; +#endif /** * \brief Creates and schedules a new timer with the specified time interval. * * \param interval The time interval after which the timer should be executed Index: src/OFTimer.m ================================================================== --- src/OFTimer.m +++ src/OFTimer.m @@ -387,11 +387,11 @@ isValid = NO; } - (OFDate*)fireDate { - return [[fireDate retain] autorelease]; + OF_GETTER(fireDate, YES) } - (double)timeInterval { return interval;