Re: Property attribute in class continuation does not match class property
Re: Property attribute in class continuation does not match class property
- Subject: Re: Property attribute in class continuation does not match class property
- From: Rick Mann <email@hidden>
- Date: Fri, 29 Jan 2010 17:22:50 -0800
On Jan 29, 2010, at 15:23:05, Quincey Morris wrote:
> On Jan 29, 2010, at 14:45, Rick Mann wrote:
>
>> @property (nonatomic, readonly) NSArray* children;
>
>> @property (nonatomic, retain) NSArray* children; <-- error here
>
> They have to match on everything but the readonly/readwrite, and the default is 'assign', so:
>
> @property (nonatomic, retain, readonly) NSArray* children;
>
> @property (nonatomic, retain, readwrite) NSArray* children;
It seems to me I've done this successfully before. It doesn't matter on a read-only property if it's assign or retain, since the retain operation is only done on write. Am I wrong?
So, I'm fairly sure it was before this most recent compiler update. Just wanted to verify.
--
Rick
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden