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