• 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: HeaderDoc style for getter/setter pairs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: HeaderDoc style for getter/setter pairs


  • Subject: Re: HeaderDoc style for getter/setter pairs
  • From: Jerry Krinock <email@hidden>
  • Date: Wed, 26 Dec 2007 17:37:57 -0800

Since I've received no solutions from the other side, and after discovering another quandary, I decided to take Steve's advice and do it the revolutionary way.

The new quandary is KVC. KVC-compliant properties can be changed directly, via bindings. Therefore, explaining the ^effect^ of an property ^value^, in the documentation of the setter (or getter) would be like documenting the interior of a house in a section titled "Front Door". What if someone comes in the back door or the side door? Don't they see the same interior?

So, what I am doing instead is this:

1. The ^effect^ of each property (loosely, instance variable) is documented in a list of "properties" in the description for the class.

2. Documentation for each getter consists of a statement that it is "the getter for ivar foo, and an indication of any copying or dependencies involved in producing the return value.

3. Documentation for each setter consists of a statement that it is "the setter for ivar foo", and a discussion of any other side effects (other than assigning the ivar value) which occur when the setter is used.


_______________________________________________

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: 
 >HeaderDoc style for getter/setter pairs (From: Jerry Krinock <email@hidden>)
 >Re: HeaderDoc style for getter/setter pairs (From: Scott Anguish <email@hidden>)
 >Re: HeaderDoc style for getter/setter pairs (From: Jerry Krinock <email@hidden>)
 >Re: HeaderDoc style for getter/setter pairs (From: Steve Weller <email@hidden>)
 >Re: HeaderDoc style for getter/setter pairs (From: Jerry Krinock <email@hidden>)

  • Prev by Date: Custom view not responding to mouse clicks in certain areas
  • Next by Date: Re: Help with Cocoa document app & controllers
  • Previous by thread: Re: HeaderDoc style for getter/setter pairs
  • Next by thread: Trying to get my head around an NSGenericException/Apple Event error
  • Index(es):
    • Date
    • Thread