• 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: @property (readonly, retain) ???
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: @property (readonly, retain) ???


  • Subject: Re: @property (readonly, retain) ???
  • From: Jake Carter <email@hidden>
  • Date: Tue, 6 May 2008 14:23:35 -0700

As far as I understand it, you can omit the 'retain' if your property is readonly. You are correct that the retain is only for assignments.

"Specifies that retain should be invoked on the object upon assignment."

From:
http://developer.apple.com/documentation/Cocoa/Conceptual/ObjectiveC/Articles/chapter_5_section_3.html#/ /apple_ref/doc/uid/TP30001163-CH17-SW2


:// Jake


On May 6, 2008, at 2:14 PM, Optical Ali wrote:

Hi,

What does it mean to to have both readonly and retain in property
declaration?
My understanding is that retain is for assignment.
_______________________________________________

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

_______________________________________________

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: 
 >@property (readonly, retain) ??? (From: "Optical Ali" <email@hidden>)

  • Prev by Date: @property (readonly, retain) ???
  • Next by Date: Sending an image to Preview to preview the image
  • Previous by thread: @property (readonly, retain) ???
  • Next by thread: Re: @property (readonly, retain) ???
  • Index(es):
    • Date
    • Thread