Re: Derived properties
Re: Derived properties
- Subject: Re: Derived properties
- From: Ken Thomases <email@hidden>
- Date: Wed, 11 Nov 2009 14:42:53 -0600
In addition to what Greg said:
On Nov 11, 2009, at 1:52 PM, Christian Ziegler wrote:
A basic question here is, for any method which might as well be a
property and of course doesn't have any parameters, is it ok to use
dot-notation or should'nt you do that.
You shouldn't use dot-notation for things which aren't properties.
However, derived properties _are_ properties. Not all properties have
to be _declared_ properties (using @property). A property is the
presence of the appropriate accessors (and corresponding semantics) in
the class's interface. The rest is sugar on top.
Cheers,
Ken
_______________________________________________
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