Using setters On Int?
        Posted  
        
            by fuzzygoat
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by fuzzygoat
        
        
        
        Published on 2010-04-27T14:51:27Z
        Indexed on 
            2010/04/27
            14:53 UTC
        
        
        Read the original article
        Hit count: 306
        
Just curious, given:
unsigned int pulseCounter_001;
@property(nonatomic, assign)unsigned int pulseCounter_001;
@synthesize pulseCounter_001;
Is there any reason to use:
[self setPulseCounter_001:0];
Or just use:
pulseCounter_001 = 0;
Style wise I think the latter says "we are setting an int" better, just curious as to any overheads involved in each?
gary
© Stack Overflow or respective owner