accessor question
accessor question
- Subject: accessor question
- From: Koen van der Drift <email@hidden>
- Date: Thu, 27 Feb 2003 15:15:24 -0500
Hi,
Just curious, is it considered good programming practice to add some
code to an accessor that tells an object to update itself, for
instance:
-(void)setMyValue:(float)aValue
{
myValue = aValue
[self recalculate];
}
If not, would this be an alternative:
...
[myObject setMyValue:1.23456];
[myObject recalculate];
...
thanks,
- Koen.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.