• 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: mmalc crawford <email@hidden>
  • Date: Sun, 07 Sep 2008 20:23:29 -0700


On Sep 7, 2008, at 7:01 PM, Phil wrote:

The sub-section on "Incorrect Use", also explains that you shouldn't
use this syntax if it's not on a declared property (and
NSViewController doesn't have any).

I'm not sure where you got this from?
It is certainly not incorrect to use the dot syntax if there is not a declared property.


The introduction states:
"Objective-C provides a dot (.) operator that offers a compact and convenient syntax you can use as an alternative to square bracket notation ([]s) to invoke accessor methods."



Declared Properties are mentioned later:
"Accessing a property property calls the get method associated with the property (by default, property) and setting it calls the set method associated with the property (by default, setProperty:). You can change the methods that are invoked by using the Declared Properties feature (see “Declared Properties”)."


mmalc

_______________________________________________

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


  • Follow-Ups:
    • Re: How did I miss this?
      • From: Phil <email@hidden>
References: 
 >How did I miss this? (From: John Murphy <email@hidden>)
 >Re: How did I miss this? (From: Phil <email@hidden>)

  • Prev by Date: Re: How to create a GUID?
  • Next by Date: ABMetadataValidateOperation crash
  • Previous by thread: Re: How did I miss this?
  • Next by thread: Re: How did I miss this?
  • Index(es):
    • Date
    • Thread