> On Jun 18, 2015, at 1:06 PM, Alex Zavatone <z...@mac.com> wrote:
> 
> I've got some spooky code that I'm digging into that calls an instance method 
> in an uninstantiated timer class

I’m not clear on what that means. If the class doesn’t have any instances, how 
are you calling an instance method on it?

> Within this pearl, we have [super sendevent:event]; within an @try block.
> At the point of the exception, super isn't even accessible, declared or 
> defined.

‘super’ isn’t an object. It’s a language keyword that’s used as the receiver of 
a method call (message-send). It just means to call the superclass’s 
implementation of the method, or more literally, “send this message to self but 
ignore any implementation in self’s class, instead starting lookup in the 
superclass.”

If [super sendEvent:event] throws an exception, it means that the superclass 
does not have a -sendEvent: method.

—Jens
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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 arch...@mail-archive.com

Reply via email to