Posted By

oppey on 05/23/11


Tagged


Versions (?)

正しいsetterメソッド


 / Published in: Objective C
 

  1. -(void)setName:(NSString*)name
  2. {
  3. if( _name != name){
  4. [_name release];
  5. _name = [name retain];
  6. }
  7. }
  8.  

Report this snippet  

You need to login to post a comment.