Skip to content

Instantly share code, notes, and snippets.

@onemouth
Created April 30, 2018 02:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save onemouth/a80fbea4544dc857267f675ce03303ba to your computer and use it in GitHub Desktop.
Save onemouth/a80fbea4544dc857267f675ce03303ba to your computer and use it in GitHub Desktop.
-(void)setName:(NSString *) str {
[str retain];
[name release];
name = str;
}
- (void)setName:(NSString *)str {
id t = [str copy];
[name release];
name = t; 
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment