Re: Private Methods
Re: Private Methods
- Subject: Re: Private Methods
- From: Mike Abdullah <email@hidden>
- Date: Tue, 18 Aug 2015 16:01:17 +0100
> On 18 Aug 2015, at 15:58, Richard Charles <email@hidden> wrote:
>
> Apple documentation states that the "Names of most private methods in the Cocoa frameworks have an underscore prefix (for example, _fooData ) to mark them as private.”
>
> I just ran into a case where one of my method names in a subclass replaced a private Cocoa framework method of the same name causing my application to crash in the next version of OS X. The private Cocoa framework method name did not have an underscore prefix. So the documentation is correct, “most” but not all private methods in the frameworks have an underscore prefix.
>
> There is no way that I would have known about the private Cocoa framework method except examining a class-dump.
Go on, satisfy our curiosity, what did you accidentally override?
_______________________________________________
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