iconara
Registered
Code:
- (void) setName: (NSString *)newName {
[name release];
name = [newName retain];
}
ok, that's just fine, but what if i want to name my argument "name" instead of "newName". please rewrite the method if the first line looks like this:
Code:
- (void) setName: (NSString *)name
what I want to do is, written in java:
Code:
void setName(String name) {
this.name = name;
}
[self name] = [name retain]; won't work that well...
theo