On Sun, Sep 7, 2008 at 9:25 PM, John Murphy <[EMAIL PROTECTED]> 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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to