0

Reading over some example Objective C code just now.

@property (nonatomic, strong) IBOutlet UILabel *descriptionLabel;

I understand that here we're declaring a property named descriptionLabel. The property has two attributes: nonatomic and strong.

What I don't understand is there are two type definitions ... IBOutlet UILabel ...

Can anyone explain why and what the implications are of two type definitions?

bodacious
  • 6,608
  • 9
  • 45
  • 74
  • 1
    I think IBOutlet is #define'd to be a "empty". This is basically used as an indicator by Interface builder to indicate properties that can be set. – akhisp Feb 12 '12 at 21:47
  • Thanks for answering - would you like to re-post your comment as an answer so I can accept it? – bodacious Feb 13 '12 at 21:57

2 Answers2

1

IBOutlet is #define'd to be a "empty". This is basically used as an indicator by Interface builder to indicate properties that can be set.

akhisp
  • 675
  • 3
  • 5
1

Please read about IBOutlet and IBAction in the Cocoa Fundamentals Guide.

Caleb
  • 124,013
  • 19
  • 183
  • 272