I redefined the synthesized property because I wanted to add NSAssert.
Is it okay to do this (for example, override) or consider it a bad practice?
@synthesize someField;
-(NSString*)someField {
NSAssert(someField != nil,@"someField");
return someField;
}
thanks
source
share