On May 6, 2008, at 2:14 PM, Optical Ali wrote:
What does it mean to to have both readonly and retain in property
declaration?
My understanding is that retain is for assignment.

If your property is truly readonly, then retain is largely irrelevant.

However, you can also make a readonly property readwrite in a class extension and then use @synthesize to create both the setter/getter methods automatically, at which point "retain" is rather critical.

Retain seems like an implementation detail, but it really isn't. Switching between retain, copy and assign has a significant potential impact on clients, thus they are exposed in the interface.

b.bum

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to