Re: Properties and memory management
Re: Properties and memory management
- Subject: Re: Properties and memory management
- From: Marcel Weiher <email@hidden>
- Date: Tue, 5 Aug 2008 13:24:11 -0700
On Aug 5, 2008, at 2:57 , Uli Kusterer wrote:
You may fire off observer methods too, which is probably undesirable.
Lucky then, that I adopted GNUstep-style ASSIGN() and DESTROY()
macros for these purposes, and since most of my code still needs to
be 10.4-compatible, I've mostly been using those:
<http://www.zathras.de/angelweb/sourcecode.htm#UKHelperMacros>
Though I vaguely remember getting lectured by someone about why it's
better to *always* use the accessors a while ago ... wish I
remembered what the reasoning behind that was, and why I thought it
might be a good idea to follow that, but OTOH didn't follow it :-/
So why not go one step further and let macros generate the accessor
for you (of course using the ASSIGN() macro inside those generated
accessors)?
Marcel
_______________________________________________
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