Properties: A question of style
Properties: A question of style
- Subject: Properties: A question of style
- From: Graham Cox <email@hidden>
- Date: Wed, 15 Jun 2016 09:48:43 +1000
Hi all,
Just a quick point for discussion.
Suppose I have a read-only BOOL property. What’s better, to declare it as:
@property (readonly) BOOL isFoo;
or:
@property (readonly, getter=isFoo) BOOL foo;
Is there any advantage to one over the other? n.b. I’d always use the latter form for read/write properties, it’s readonly ones that I’m wondering about.
—Graham
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden