• 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: Any good advice for naming parameters of init methods?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Any good advice for naming parameters of init methods?


  • Subject: Re: Any good advice for naming parameters of init methods?
  • From: William Xu <email@hidden>
  • Date: Fri, 11 Jul 2008 11:59:35 +0900
  • Organization: the Church of Emacs

Jens Alfke <email@hidden> writes:

> With any naming convention, the possible problem is a conflict with a name in a
> superclass.  Apple's Cocoa frameworks tend to use a "_" prefix for both ivars
> and private method names.

How about using "_" as postfix then? Like `this_one_'.  I find google
c++ guide suggests that:

  http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml#Variable_Names

Looks good to me.

--
William

http://williamxu.net9.org

... I think I'd better go back to my DESK and toy with a few common
MISAPPREHENSIONS ...
_______________________________________________

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: Any good advice for naming parameters of init methods?
      • From: Kai <email@hidden>
References: 
 >Any good advice for naming parameters of init methods? (From: an0 <email@hidden>)
 >Re: Any good advice for naming parameters of init methods? (From: Graham Cox <email@hidden>)
 >Re: Any good advice for naming parameters of init methods? (From: "Sean McBride" <email@hidden>)
 >Re: Any good advice for naming parameters of init methods? (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: Extracting text elements from an Image
  • Next by Date: Setting DPI of image data
  • Previous by thread: Re: Any good advice for naming parameters of init methods?
  • Next by thread: Re: Any good advice for naming parameters of init methods?
  • Index(es):
    • Date
    • Thread