• 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: Reserved method prefixes in Cocoa. Is there a reference list?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Reserved method prefixes in Cocoa. Is there a reference list?


  • Subject: Re: Reserved method prefixes in Cocoa. Is there a reference list?
  • From: Kyle Sluder <email@hidden>
  • Date: Wed, 29 May 2013 11:46:13 -0700

On Wed, May 29, 2013, at 11:28 AM, Jens Alfke wrote:
>
> There aren’t any forbidden prefixes that I know of, but there are ones
> that should be used only for particular purposes, because the compiler
> and/or runtime will make assumptions about them when they see that
> prefix.

Apple selfishly reserves the underscore prefix for its own private
methods, and even goes so far as to suggest prefixing your own methods
with ugly unique prefixes:
http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/CodingGuidelines/Articles/NamingMethods.html

Because clearly we don't need namespaces in a modern object oriented
programming language.

--Kyle Sluder

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:

This email sent to email@hidden


  • Follow-Ups:
    • Re: Reserved method prefixes in Cocoa. Is there a reference list?
      • From: Alex Zavatone <email@hidden>
    • Re: Reserved method prefixes in Cocoa. Is there a reference list?
      • From: Jens Alfke <email@hidden>
References: 
 >Reserved method prefixes in Cocoa. Is there a reference list? (From: Alex Zavatone <email@hidden>)
 >Re: Reserved method prefixes in Cocoa. Is there a reference list? (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: Reserved method prefixes in Cocoa. Is there a reference list?
  • Next by Date: Re: Flash inside an app
  • Previous by thread: Re: Reserved method prefixes in Cocoa. Is there a reference list?
  • Next by thread: Re: Reserved method prefixes in Cocoa. Is there a reference list?
  • Index(es):
    • Date
    • Thread