[Biococoa-dev] mass calculator bug

Koen van der Drift kvddrift at earthlink.net
Sat Aug 28 06:45:31 EDT 2004


On Aug 28, 2004, at 6:24 AM, Alexander Griekspoor wrote:

> Of course you note one problem here, we haven't implemented a number 
> of accessors. I already mentioned once that we should for all 
> variables like Apple advices us to do, and always call the accessors 
> if you want to change things (instead of directly accessing the 
> variable). This is one example where this comes in handy. If we don't 
> want to make some accessors public, we have to @private them so 
> they're invisible outside the class.

Yes, I fully agree. What's the syntax again to use @private?


> Anyway, I leave this up to you guys. An alternative would be a special 
> init method that takes all variables as input and do everything in one 
> call.
>

I don't like that idea, I prefer the accessors.




- Koen.




More information about the Biococoa-dev mailing list