Reputation: 11297
I want to declare properties with int
s and bool
s, for example:
@property(nonatomic,retain) bool signOutgoingFax;
The error I get is:
property 'signOutgoingFax' with 'retain' attribute must be of object type
Upvotes: 2
Views: 1451
Reputation: 48398
You do not retain BOOL
int
or float
. Simply use
@property(nonatomic) bool signOutgoingFax;
The point here is that the variable is declared as "BOOL", not "BOOL *" (this would be a pointer), and hence you should not use retain
.
Upvotes: 6