I recently tried to compile an older Xcode project (which used to compile just fine), and now I\'m seeing a lot of errors of this form:
error: w
You need to implement the getter also. Example:
// Interface:
@property (retain) NSObject * someProperty;
// Implementation:
- (void)setSomeProperty:(NSObject *)newValue
{
@synchronized (self)
{
// ...
}
}
- (NSObject *)someProperty
{
NSObject *ret = nil;
@synchronized (self)
{
ret = [[someProperty retain] autorelease];
}
return ret;
}