On Apr 3, 2008, at 1:29 PM, Hamish Allan wrote:
On Thu, Apr 3, 2008 at 7:08 PM, Robert Claeson <[EMAIL PROTECTED]
> wrote:
C. Instance variables are usually named like "theName",
"theAddress" or
something else that makes sense if there's the risk of mixup
between ivars
and locals.
Myself I use "myName" for instance variables and "theName" for static
variables. (I guess I'd probably use "globalName" if circumstances
ever dictated.)
Here's another vote for using "myName" - after all, when you add an
instance variable to a class in IB it is "myVariable". Plus if you
ever directly try to access another objects ivars it looks wrong
grammatically "someObject->myStuff" (using this guideline would make
"its" a bad prefix for stuff not meant to be publicly visible).
Glenn Andreas [EMAIL PROTECTED]
<http://www.gandreas.com/> wicked fun!
quadrium2 | build, mutate, evolve, animate | images, textures,
fractals, art
_______________________________________________
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [EMAIL PROTECTED]