Re: Setting focus to text field in drawer
Re: Setting focus to text field in drawer
- Subject: Re: Setting focus to text field in drawer
- From: Scott Anguish <email@hidden>
- Date: Mon, 11 Aug 2003 03:18:02 -0400
On Monday, August 11, 2003, at 2:23 AM, Arthur Clemens wrote:
On maandag, augustus 11, 2003, at 06:04 AM, publiclook wrote:
Um. Instance variable names are local to their class, no? So what's
the point of trying to avoid collisions here?
More care is needed with class names though. :}
A quick search of this lists archives reveals the following post from
Apple's Ali Ozer:
http://cocoa.mamasam.com/MACOSXDEV/2002/02/2/26587.php
This folk-lore (which happens to be true) comes up a couple of times
per year.
The thread mentions underscores with method names, not with data
members.
Same rule applies.
<
http://developer.apple.com/documentation/Cocoa/Conceptual/
CodingGuidelines/index.html>
In the Cocoa Programming Topic Coding Guidelines, the article "Naming
Methods" states:
Private Methods
With the exception of a prefix convention, private names follow the
same rules as public names. The prefix convention is this:
Dont use the underscore character as a prefix meaning private. Apple
reserves this convention, and its use by third parties could result in
rather unpleasant name-space collisions.
A suggestion for designating private methods (as well as private
instance variables, constants, and so on) is to devise your own prefix,
perhaps one based on your project. This prefix might have the form
XX_. So if your project is called Byte Flogger, the prefix would be
BF_ and an example would be BF_addObject:. Admittedly, this is not
pretty, but its only a private method, after all.
_______________________________________________
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.