• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Is this good programming?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Is this good programming?
      • From: j o a r <email@hidden>
References: 
 >Is this good programming? (From: "Frank Bettger" <email@hidden>)
 >Re: Is this good programming? (From: j o a r <email@hidden>)

  • Prev by Date: Re: Informing one class about another class's methods
  • Next by Date: combining NSBezierPath
  • Previous by thread: Re: Is this good programming?
  • Next by thread: Re: Is this good programming?
  • Index(es):
    • Date
    • Thread