I was wondering about how the setter methods get created and am I right in saying this:
Retain/Strong attribute:
- (void)setProperty:(Class *)class
{
variable = [class retain];
}
Assign/Weak attribute:
- (void)setProperty:(Class *)class
{
variable = class;
}
Copy attribute:
- (void)setProperty:(Class *)class
{
variable = [class copy];
}
Are assign and weak even the same either?
Thanks in advance!