Re: @properties and Information Hiding
Re: @properties and Information Hiding
- Subject: Re: @properties and Information Hiding
- From: Charles Steinman <email@hidden>
- Date: Thu, 1 Nov 2007 08:20:40 -0700 (PDT)
--- Milo Bird <email@hidden> wrote:
> The only problem with this is that you can't
> re-declare any of the
> other declaration attributes. This means that if you
> want to use the
> "retain" or "copy" style of accessor, rather than
> the default
> "assign", you have to declare this in the interface.
Oh, is that the trick? That's some useful information.
I knew I'd tried this before, thinking it should work,
but I'd gotten a compiler warning about redefining the
property. It must not have occurred to me to put the
copy part in the readonly definition. Thanks for that!
Cheers,
Chuck
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
_______________________________________________
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