> On Aug 20, 2015, at 4:10 AM, Jeremy Pereira 
> <[email protected]> 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 protected])

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to