• 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: Setting focus to text field in drawer
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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 14:15:41 -0400

On Monday, August 11, 2003, at 6:07 AM, Bill Cheeseman wrote:

on 03-08-10 8:53 PM, publiclook at email@hidden wrote:

Also, Apple reserves all variable names that start with just one
underscore and don't have a unique prefix.

Actually, Apple only reserves method names with a leading underscore. We are
free to use a leading underscore with variable names, as the compiler will
catch any conflict with variables of the same name in Apple's headers. The
latest version of the documentation (I forget which documentation; probably
System Overview) makes this explicit.


Well, to be clear... (from Coding Guidelines)

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 Private Methods for a suggestion on prefixes for private API.

So, actual variables, rather than instance variables aren't included, but realistically it'd be good practice to not use those either.

I prefix all my vars with this now

thisIsMyPrefix_itIsNobodyElsesPrefix_
_______________________________________________
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.

  • Follow-Ups:
    • Re: Setting focus to text field in drawer
      • From: "Alastair J.Houghton" <email@hidden>
    • Re: Setting focus to text field in drawer
      • From: Bill Cheeseman <email@hidden>
    • Re: Setting focus to text field in drawer
      • From: Steve Bird <email@hidden>
References: 
 >Re: Setting focus to text field in drawer (From: Bill Cheeseman <email@hidden>)

  • Prev by Date: Text storage
  • Next by Date: Re: Distributed Obj Port
  • Previous by thread: Re: Setting focus to text field in drawer
  • Next by thread: Re: Setting focus to text field in drawer
  • Index(es):
    • Date
    • Thread