• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How did I miss this?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >How did I miss this? (From: John Murphy <email@hidden>)

  • Prev by Date: How did I miss this?
  • Next by Date: Re: How did I miss this?
  • Previous by thread: How did I miss this?
  • Next by thread: Re: How did I miss this?
  • Index(es):
    • Date
    • Thread