Re: subclassing with conditional method overriding

2009-09-05 Thread Brent Gulanowski
@implementation B - (void)handleTask { if(condition) { [super handleTask]; return; } // B implementation return; } @end On Sat, Sep 5, 2009 at 6:25 AM, Alex Reynolds wrote: > Let's say I have a class interface and implementation, as follows: > > --- > @interface A : NSObject { >

Re: subclassing with conditional method overriding

2009-09-05 Thread Jean-Daniel Dupas
Le 5 sept. 2009 à 12:33, jonat...@mugginsoft.com a écrit : On 5 Sep 2009, at 11:25, Alex Reynolds wrote: Let's say I have a class interface and implementation, as follows: --- @interface A : NSObject { ... } - (void) handleTask; @end @implementation A ... - (void) handleTask { // do stuf

Re: subclassing with conditional method overriding

2009-09-05 Thread jonat...@mugginsoft.com
On 5 Sep 2009, at 11:25, Alex Reynolds wrote: Let's say I have a class interface and implementation, as follows: --- @interface A : NSObject { ... } - (void) handleTask; @end @implementation A ... - (void) handleTask { // do stuff specific to A object type... } --- Let's say I then subcl

subclassing with conditional method overriding

2009-09-05 Thread Alex Reynolds
Let's say I have a class interface and implementation, as follows: --- @interface A : NSObject { ... } - (void) handleTask; @end @implementation A ... - (void) handleTask { // do stuff specific to A object type... } --- Let's say I then subclass A and override -handleTask: --- @interface