• 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: Commenting style
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Commenting style


  • Subject: Re: Commenting style
  • From: Ian was here <email@hidden>
  • Date: Wed, 1 Mar 2006 19:32:02 -0800 (PST)

Personally, I like to use the following header style:



/*
          result = myMethod:

          Description of myMethod ...
*/




--- Chad Armstrong <email@hidden> wrote:

> Over the years, we take on particular coding styles,
> which evolve
> over the years and adapt to the tools and languages
> we use.
> Especially with C-based languages, I feel fairly
> happy with how my
> code looks.  However, is there a particular style
> used in Cocoa/
> Objective-C for creating comments, especially with
> function/method
> headers?
>
> In Java, they are somewhat particular in how the
> header comments are
> structured, and C# seems to have its own set of ways
> that things are
> created, which can be very useful in generating
> documentation for
> classes.
>
> Is there any such rule of thumb in Cocoa?
>
> Current, my headers tend to be formatted like this:
>
> // =================
> // Function name
> // ----------------------------------
> // Description about the function
> // ----------------------------------
> // Created date:
> // Version date:
> // =================
>
> And if applicable, put in things like the Author.
>
> - Chad
>  _______________________________________________
> Do not post admin requests to the list. They will be
> ignored.
> Cocoa-dev mailing list
> (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
>
> This email sent to email@hidden
>


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Commenting style (From: Chad Armstrong <email@hidden>)

  • Prev by Date: Re: NSDocument saveDocumentAs with suggested name
  • Next by Date: Re: NSCalendar bug with adding to pre-1919 dates?
  • Previous by thread: Re: Commenting style
  • Next by thread: Re: Commenting style
  • Index(es):
    • Date
    • Thread