• 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: @properties and Information Hiding
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: @properties and Information Hiding (From: Milo Bird <email@hidden>)

  • Prev by Date: Re: [Leopard] Core Data and model changes regarding indexing
  • Next by Date: Re: Xcode 3.0 delay
  • Previous by thread: Re: @properties and Information Hiding
  • Next by thread: Re: @properties and Information Hiding
  • Index(es):
    • Date
    • Thread