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.

enter image description here

check warnings default no being turned yes target.


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -