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

Code style guidelines


  • Subject: Code style guidelines
  • From: Christoffer Lerno <email@hidden>
  • Date: Thu, 20 May 2004 23:03:37 +0800

Hi everyone,

I'm trying to figure out some good, consistent style for my obj-c code. Obviously there is the naming guidelines, but what about spacing?

Are there any preferred way of writing

-(id) someMethod:(NSObject*)anObject?

I've seen spacing like this

- (id)someMethod:(NSObject *)anObject

and many other variants.

Anything to recommend?

/Christoffer
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: Code style guidelines
      • From: Shawn Erickson <email@hidden>
    • Re: Code style guidelines
      • From: Brent Gulanowski <email@hidden>
    • Re: Code style guidelines
      • From: Brent Gulanowski <email@hidden>
    • Re: Code style guidelines
      • From: Gwynne <email@hidden>
  • Prev by Date: Re: Can't edit an NSTableView
  • Next by Date: Re: Code style guidelines
  • Previous by thread: Re: A weird parse error
  • Next by thread: Re: Code style guidelines
  • Index(es):
    • Date
    • Thread