• 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: Alex Zavatone <email@hidden>
  • Date: Wed, 29 May 2013 16:32:22 -0400

On May 29, 2013, at 2:46 PM, Kyle Sluder wrote:

> 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

Be that as it may, this is exactly the document I was looking for - and also a little eye opening.  It looks like there are many more conditions to pay attention to when naming methods.  Thank you Kyle.



_______________________________________________

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


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>)
 >Re: Reserved method prefixes in Cocoa. Is there a reference list? (From: Kyle Sluder <email@hidden>)

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