• 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: A Data Object in Cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: A Data Object in Cocoa


  • Subject: Re: A Data Object in Cocoa
  • From: Alastair Houghton <email@hidden>
  • Date: Sat, 10 Jan 2009 15:36:29 +0000

On 10 Jan 2009, at 13:00, Ricky Sharp wrote:

On Jan 10, 2009, at 6:45 AM, Alastair Houghton wrote:

But in general I think it's better not to prefix the names of member variables, and then in your initialisers, to use a different name for the argument.

My personal pattern is to leave the ivars as-is. Then, for parameters, I prefix with 'a' or 'an'. Local variables are prefixed with 'the':

Yes, quite. Apple does something very similar, judging by the names of parameters in the documentation.


Kind regards,

Alastair.

--
http://alastairs-place.net



_______________________________________________

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: 
 >A Data Object in Cocoa (From: nik heger <email@hidden>)
 >Re: A Data Object in Cocoa (From: Ken Thomases <email@hidden>)
 >Re: A Data Object in Cocoa (From: "Adam Foltzer" <email@hidden>)
 >Re: A Data Object in Cocoa (From: Alastair Houghton <email@hidden>)
 >Re: A Data Object in Cocoa (From: Ricky Sharp <email@hidden>)

  • Prev by Date: Re: changeKeyPath method documentation
  • Next by Date: Re: changeKeyPath method documentation
  • Previous by thread: Re: A Data Object in Cocoa
  • Next by thread: Re: A Data Object in Cocoa
  • Index(es):
    • Date
    • Thread