0

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;
Patricks
  • 715
  • 2
  • 12
  • 25

1 Answers1

3

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.

Léo Natan
  • 56,823
  • 9
  • 150
  • 195
  • 1
    description is the method that is used when you print an object with the %@ format specifier. You don't want to mess with that. You really, really don't want a property named description. – gnasher729 Feb 06 '15 at 00:20