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: Bill Cheeseman <email@hidden>
- Date: Mon, 11 Aug 2003 12:37:45 -0400
Well, the Apple Coding Guidelines prove me (and Mike Ferris) wrong about
Apple's position:
"Do not use the underscore character as a prefix meaning that the _instance
variable_ is private. Apple reserves the use of this convention because its
use by third parties could result in name-space collisions. See 3Private
Methods2 for a suggestion on prefixes for private API." (Emphasis added.)
But I wonder if this Apple guideline is wrong (or incomplete) as to
potential name-space collisions with iVars? Maybe a more knowledgeable C
maven than I can answer. As I understand it (and Mike Ferris suggested, but
with less than complete certitude), the compiler will flag iVar name-space
collisions at compile time. Right? Wrong? If it does flag them, then there's
no no reason for Apple to tell us not to use leading underscores on iVar
names.
on 03-08-11 11:06 AM, Shawn Erickson at email@hidden wrote:
>
Note this doc on Apples sight...
>
>
http://developer.apple.com/documentation/Cocoa/Conceptual/
>
CodingGuidelines/index.html
>
>
>
On Monday, August 11, 2003, at 03:26 AM, Bill Cheeseman wrote:
>
>
>> 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.
>
>
>
> Notice that Ali's post refers only to Apple's reserving METHOD names
>
> with a
>
> leading underscore. INSTANCE VARIABLE names are different. I
>
> originally ran
>
> across this rule in a post from Apple's Mike Ferris almost three years
>
> ago,
>
> which I will quote at the end of this message.
--
Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
http://www.quecheesoftware.com
The AppleScript Sourcebook -
http://www.AppleScriptSourcebook.com
Vermont Recipes -
http://www.stepwise.com/Articles/VermontRecipes
_______________________________________________
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.