ios - Warning when omitting / removing 'strong' attribute from Property? -
reading programmingwithobjectivec, can say:
there’s no need specify strong attribute explicitly, because default.
if omit 'strong' attribute property in project this,
@property (nonatomic) nsstring *string;
it gives me warning:
no 'assign', 'retain', or 'copy' attribute specified - 'assign' assumed
aka.
-wobjc-property-no-attribute
so somehow compiler seems thinking i´m still doing manual reference counting, otherwise there wouldn´t warning.
also, when creating new empty project, doesn´t warn me when there´s no 'strong' attribute, must have current project settings, maybe flag isn´t reachable via ui. project rather old 1 (~2 years) , has undergone several migration steps in meantime (xcode 3 > 4 > 5, non-arc > arc etc.).
i´ve looked everywhere in project settings, somewhere seems missing checkmark or something.
anyone experiencing same problem?
just searched it, , closest build property clang_warn_objc_implicit_atomic_properties
doubt has relationship.
you can check default parameters target overrides selecting "all" , "levels" options in build settings view.
check warnings default no being turned yes target.
Comments
Post a Comment