Re: Private Methods
Re: Private Methods
- Subject: Re: Private Methods
- From: Jens Alfke <email@hidden>
- Date: Thu, 20 Aug 2015 08:31:01 -0700
> On Aug 20, 2015, at 4:10 AM, Jeremy Pereira <email@hidden> wrote:
>
>> The (Obj-C) compiler knows if a superclass declares a method with the same selector.
>
> Only if the method is declared in in @interface that has been imported. It could have been declared in a private category or class extension or even not at all.
Yes, that’s what I meant. By “declares” I meant “includes in its public interface”. Obviously the method could be declared privately or only appear in the @implementation. I was just rebutting Maxthon’s assertion that the compiler knows “nothing”.
—Jens
_______________________________________________
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