Le 26 mai 2010 à 15:24, Jean-Daniel Dupas a écrit :

> Who knows what a class does when you set an ivar using the accessor. It would 
> badly break encapsulation principle.
> For example, what would append if a NSView subclass change the view frame by 
> accessing the _frame ivar directly ? 

You are right. But this is (to me) more relevant to good coding principles. 
I've never programmed in PyObjC, but it should be interesting to have the 
advice of someone who does.

Anyhow, thanks to all for pointing out the flaw in my reasoning.
Vincent_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to