Re: How did I miss this?
Re: How did I miss this?
- Subject: Re: How did I miss this?
- From: "Kyle Sluder" <email@hidden>
- Date: Sun, 7 Sep 2008 21:59:56 -0400
On Sun, Sep 7, 2008 at 9:25 PM, John Murphy <email@hidden> wrote:
> Has this always been the case? I don't see any listing of "Properties" in documentation.
It's a new feature in ObjC 2.0, known as "dot syntax". It's syntactic
sugar for accessors and mutators, and is orthogonal to properties.
The compiler will translate a dot-syntax rvalue to an accessor call
(for example, NSLog(foo.bar) becomes NSLog([foo bar])), and a
dot-syntax lvalue becomes a mutator call (foo.bar = 5 becomes [foo
setBar:5]). It dovetails nicely with properties, but neither feature
requires the other.
--Kyle Sluder
_______________________________________________
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