Re: [ANN] Cocoa Style for ObjC: 1 and 2
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