Re: Another Gnarly Objective-C Question!

2013-03-14 Thread Dave
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

Re: Another Gnarly Objective-C Question!

2013-03-13 Thread Jean-Daniel Dupas
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. >

Re: Another Gnarly Objective-C Question!

2013-03-13 Thread John McCall
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

Re: Another Gnarly Objective-C Question!

2013-03-13 Thread Jean-Daniel Dupas
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

Re: Another Gnarly Objective-C Question!

2013-03-12 Thread Wim Lewis
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

Re: Another Gnarly Objective-C Question!

2013-03-12 Thread Jens Alfke
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

Re: Another Gnarly Objective-C Question!

2013-03-12 Thread Graham Cox
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];

Another Gnarly Objective-C Question!

2013-03-12 Thread Dave
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,