• 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: [ANN] Cocoa Style for ObjC: 1 and 2
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ANN] Cocoa Style for ObjC: 1 and 2


  • Subject: Re: [ANN] Cocoa Style for ObjC: 1 and 2
  • From: "M. Uli Kusterer" <email@hidden>
  • Date: Wed, 27 Oct 2004 08:47:16 +0200

At 16:25 Uhr -0700 26.10.2004, Scott Stevenson wrote:
I've just posted a two-part tutorial on style conventions for Cocoa using Objective-C:

http://cocoadevcentral.com/articles/000082.php
http://cocoadevcentral.com/articles/000083.php

Niiice :-)

I'm also happy that you didn't write about braces and indentation, because I'm pretty sure (at least looking at Apple's sample code) that I would have disagreed... :-)

One note: Your choice of selector names for singletons isn't necessarily the only one. IIRC the only place in Cocoa where "shared" is used is NSWorkspace, and probably not because it's a singleton, but rather because the object seems to be shared between applications. Other singletons:

+NSFileManager defaultManager
+NSUserDefaults standardUserDefaults
+NSScreen mainScreen
+NSScreen deepestScreen

Though +NSApplication sharedApplication is the second one in favor of your choice... still, I'm not sure this is an area that doesn't necessarily have a standard prefix.
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
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
  • Follow-Ups:
    • Re: [ANN] Cocoa Style for ObjC: 1 and 2
      • From: Scott Stevenson <email@hidden>
References: 
 >[ANN] Cocoa Style for ObjC: 1 and 2 (From: Scott Stevenson <email@hidden>)

  • Prev by Date: Re: System Idle Time
  • Next by Date: Re: [Moderator] Re: Cocoa-Java and the Future
  • Previous by thread: Re: [ANN] Cocoa Style for ObjC: 1 and 2
  • Next by thread: Re: [ANN] Cocoa Style for ObjC: 1 and 2
  • Index(es):
    • Date
    • Thread