New warnings in XCode 6

287 Views Asked by At

Since I've been using XCode 6 I got some new warnings which I don't quite understand:

  • Property type 'UITextView *' is incompatible with type 'NSString *' inherited from 'NSObject'
  • 'copy' attribute on property 'description' does not match the property inherited from 'NSObject'
  • 'atomic' attribute on property 'description' does not match the property inherited from 'NSObject'

Here the line its related to:

@property (nonatomic,retain) IBOutlet UITextView *description;
1

There are 1 best solutions below

1
On

NSObject has a property with the same name, but a different type - NSString, which you are overriding with your own declaration. Change your property name to solve the problem.