Re: Is this good programming?
Re: Is this good programming?
- Subject: Re: Is this good programming?
- From: "Frank Bettger" <email@hidden>
- Date: Thu, 23 Aug 2007 14:38:44 +0200
Thanks joar for your replay,
My fault, there is no dangar because NSCalendarDates are always immutable.
However had they been mutable then my concern would be valid? Because then
the caller could change date (and therby entryDate) without calling one of
objects methods.
Frank
On 8/23/07, j o a r <email@hidden> wrote:
>
>
> On 23 aug 2007, at 13.24, Frank Bettger wrote:
>
> > I'm a newbie so maybe I'm thinking wrong but the code above seems
> > dangerous
> > to me and opposes the OOP saying that the only way to change an
> > instance
> > variable of an object should be by calling one of objects methods.
>
>
> The code you quoted use a setter method to change the instance
> variable, so I don't quite see your point.
>
>
> j o a r
>
>
>
>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden