Le 10 juil. 2013 à 02:24, jahanian <[email protected]> a écrit :

> 
> On Jul 9, 2013, at 9:22 AM, Jordan Rose <[email protected]> wrote:
> 
>> 
>> On Jul 8, 2013, at 14:42 , Fariborz Jahanian <[email protected]> wrote:
>> 
>>> +@property(weak) NSString *__weak WeakProp;
>>> +
>>> +@property(strong) NSString * StrongProp;
>> 
>> Conventionally, I'd expect the __weak to disappear and the "strong" to be 
>> implied instead of explicitly spelled out.
> 
> __weak came from user code. migration did not generate it. removed “strong” 
> from migrated attributes.
> 
>> 
>> I hope inferring "(copy)" is in the works. Plenty of value object properties 
>> (NSString, NSURL, etc.) are copy properties.
> 
> I am now producing “copy” for all retainable object types whose life time is 
> “strong". I am not sure if there is more precise 
> rule for this though?

I think it should make sure the class conforms to NSCopying.

-- Jean-Daniel




_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to