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

Re: Style Question


  • Subject: Re: Style Question
  • From: "Alex Wait" <email@hidden>
  • Date: Fri, 27 Jun 2008 21:44:45 -0700

I got another Style related question.

if I have a member, let's say a NSString, called FirstName...

would the setter still be setFirstName?

I notice how it capitalizes the first letter even if the member doesn't
start with a capital letter.
if I have a "three word" named variable, let's say firstNameFirst
how would it find it? Or does it do a case insensitive compare?


On Fri, Jun 27, 2008 at 9:40 PM, Shawn Erickson <email@hidden> wrote:

> On Fri, Jun 27, 2008 at 9:30 PM, Alex Wait <email@hidden> wrote:
>
> > Also since I am using this style, XCode doesn't tab in for me when I type
> {
> > then a return.
>
> It will if you enable it (at least it always does for me).
>
> Use whatever coding style you want however do try to follow Cocoa like
> naming convention.
>
> Personally for methods I have the { on the line following the method
> definition while for all other blocks (most other) I have the { at the
> trailing end of the line (aka end of the if statement line, etc.).
>
> -Shawn
>



--
If you can't be kind, at least have the decency to be vague.
_______________________________________________

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: Style Question
      • From: Jens Alfke <email@hidden>
    • Re: Style Question
      • From: "Shawn Erickson" <email@hidden>
References: 
 >Style Question (From: "Alex Wait" <email@hidden>)
 >Re: Style Question (From: "Shawn Erickson" <email@hidden>)

  • Prev by Date: Re: Core data question in multiwindow doc app
  • Next by Date: Re: Style Question
  • Previous by thread: Re: Style Question
  • Next by thread: Re: Style Question
  • Index(es):
    • Date
    • Thread