In a project I am moving from GC to ARC I'm trying to understand the nuances of
the new declarations. I have many pre-ARC properties that look like...
--------------------------------------------------------------------
@interface TKObject : NSObject
{
NSString *theString;
}
@property(readwrite,assign) NSString *theString;
--------------------------------------------------------------------
After ARC conversion it looks like....
--------------------------------------------------------------------
@interface TKObject : NSObject
{
NSString *__strong theString;
}
@property(readwrite,strong) NSString *theString;
--------------------------------------------------------------------
My question is, couldn't it just as easily be written the same as the pre ARC
style sans "assign" in @property since strong is the default? I noticed that in
most of my files that the ARC conversion tool changes it simply replaced
properties with assign type with the strong and __strong designators. However
three files out of about 50 it just dropped the assign form @property. Is there
a difference or reason for this?
CT
_______________________________________________
Cocoa-dev mailing list ([email protected])
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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [email protected]