On 11 Mar 2013, at 20:50, Jens Alfke wrote:


On Mar 11, 2013, at 1:33 PM, Dave <d...@looktowindward.com> wrote:

There isn't a
-newDict
method defined, so how come I didn't get a complier error?

Because the receiver is a Class, so the method is +newDict, which exists.




Not sure I understand:

if from an Instance - Method, I do:

[super someMehod];

It calls -someMehod in the superclass.

if from an instance  + Method I do:

[super someMethod], then surely it's an error because this isn't an instance?

So from a + method, what do:

[super someMethod]; and
[[self superclass] someMethod];

do?

Thanks a lot
Dave


_______________________________________________

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