Hi

NSObject declares:
@property(readonly, copy) NSString *description

However, on occasion I may require a non atomic variant:
@property (nonatomic, readonly, copy) NSString * description;

My usage case involves using a code generator that outputs property 
declarations in a standardised way that can cause these attribute clashes and 
associated warnings:
Two things:

1. What is the best way to deal with this situation? I can disable the warning 
with a pragma targeting -Wproperty-attribute-mismatch. Is that it?
2. Does the attribute mismatch have the potential to cause any serious issues 
for ARC?

Thanks

Jonathan














_______________________________________________

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]

Reply via email to