Re: Subclasses, protocols and properties - compiler warning

2010-11-22 Thread Jonny Taylor
I am encountering what I believe to be a spurious compiler warning. I wonder whether this is a clue that I am doing something differently to how I should do it. The problem comes if I define a protocol containing a property and then define that property in a base class that does NOT conform

Subclasses, protocols and properties - compiler warning

2010-11-19 Thread Jonny Taylor
I am encountering what I believe to be a spurious compiler warning. I wonder whether this is a clue that I am doing something differently to how I should do it. The problem comes if I define a protocol containing a property and then define that property in a base class that does NOT conform to

Re: Subclasses, protocols and properties - compiler warning

2010-11-19 Thread Siegfried
On 19/11/2010, at 12:38, Jonny Taylor wrote: … Can anybody comment on whether I am doing something strange here Well I see something strange in here Sample code to demonstrate this in a fresh Cocoa project (main.m) with Xcode 3.2.1/gcc 4.2 is as follows: //== @protocol

Re: Subclasses, protocols and properties - compiler warning

2010-11-19 Thread Quincey Morris
On Nov 19, 2010, at 06:38, Jonny Taylor wrote: @protocol MyProtocol NSObject @property int genericProperty; -(void)subclassSpecificImplementationOfGenericFunction; @end @interface MyBaseClass : NSObject @property int genericProperty; @end @interface MySubclass :

Re: Subclasses, protocols and properties - compiler warning

2010-11-19 Thread Jeremy Pereira
On 19 Nov 2010, at 14:38, Jonny Taylor wrote: I am encountering what I believe to be a spurious compiler warning. I wonder whether this is a clue that I am doing something differently to how I should do it. The problem comes if I define a protocol containing a property and then define