Re: Is this good programming?
Re: Is this good programming?
- Subject: Re: Is this good programming?
- From: j o a r <email@hidden>
- Date: Thu, 23 Aug 2007 15:09:03 +0200
On 23 aug 2007, at 14.38, Frank Bettger wrote:
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.
True, that can be a problem. You often use "copy" rather than
"retain" in the setter for that reason.
j o a r
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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