Re: Properties: A question of style
Re: Properties: A question of style
- Subject: Re: Properties: A question of style
- From: Jens Alfke <email@hidden>
- Date: Wed, 15 Jun 2016 10:45:39 -0700
> On Jun 14, 2016, at 4:48 PM, Graham Cox <email@hidden> wrote:
>
> @property (readonly) BOOL isFoo;
>
> or:
>
> @property (readonly, getter=isFoo) BOOL foo;
Are you asking whether it’s better to name a boolean property “foo” or “isFoo”?
Or are you asking about the naming of the getter method for a non-synthesized property?
The examples you gave sort of mix both of those concerns together, which I think is confusing people.
—Jens
_______________________________________________
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