On 13 Mar 2013, at 09:13, Jean-Daniel Dupas wrote:
Le 13 mars 2013 à 01:55, Wim Lewis a écrit :
On 12 Mar 2013, at 2:08 AM, Graham Cox wrote:
in a + method, [self class] === self. Once you've got that,
you've got it.
You're overthinking this.
A class method is just an instance metho
Le 13 mars 2013 à 18:13, John McCall a écrit :
> On Mar 13, 2013, at 2:13 AM, Jean-Daniel Dupas wrote:
>> Le 13 mars 2013 à 01:55, Wim Lewis a écrit :
>>> On 12 Mar 2013, at 2:08 AM, Graham Cox wrote:
in a + method, [self class] === self. Once you've got that, you've got it.
>
On Mar 13, 2013, at 2:13 AM, Jean-Daniel Dupas wrote:
> Le 13 mars 2013 à 01:55, Wim Lewis a écrit :
>> On 12 Mar 2013, at 2:08 AM, Graham Cox wrote:
>>> in a + method, [self class] === self. Once you've got that, you've got it.
>>>
>>>
>>>
>>> You're overthinking this.
>>>
>>> A class method
Le 13 mars 2013 à 01:55, Wim Lewis a écrit :
>
> On 12 Mar 2013, at 2:08 AM, Graham Cox wrote:
>> in a + method, [self class] === self. Once you've got that, you've got it.
>>
>>
>>
>> You're overthinking this.
>>
>> A class method is just an instance method of the class object. No magic at
On 12 Mar 2013, at 2:08 AM, Graham Cox wrote:
> in a + method, [self class] === self. Once you've got that, you've got it.
>
>
>
> You're overthinking this.
>
> A class method is just an instance method of the class object. No magic at
> all. So all this confusion you've caused yourself about
On Mar 12, 2013, at 2:08 AM, Graham Cox wrote:
> A class method is just an instance method of the class object. No magic at
> all. So all this confusion you've caused yourself about [super class] and so
> on is wholly unnecessary to correctly use class methods.
Agreed. This can be confusing t
On 12/03/2013, at 7:39 PM, Dave wrote:
> Hi All,
>
> Thanks for all help on the last question, here is one on a similar vein:
>
> This is all Class methods, no instances are allocated or intended to be
> allocated at this stage.
>
> in + Method in a subclass:
>
> [[self class] someMethod];
Hi All,
Thanks for all help on the last question, here is one on a similar vein:
This is all Class methods, no instances are allocated or intended to
be allocated at this stage.
in + Method in a subclass:
[[self class] someMethod];
This calls +someMethod in the current class, if it exists,