Re: protocol and properties

2010-11-28 Thread Stephen J. Butler
On Sun, Nov 28, 2010 at 2:15 AM, Martin Hewitson martin.hewit...@aei.mpg.de wrote: Suppose I have a formal protocol which defines a method: - (NSArray*)objects; Then I implement a class which implements this protocol. To do that I make a property: @property (nonatomic, readwrite, retain)

Re: protocol and properties

2010-11-28 Thread Martin Hewitson
It 'works' for me too, I just warnings from Xcode. Anyway, I'll check in case I made a typo or something. Thanks! Martin On 28, Nov, 2010, at 9:50 AM, Stephen J. Butler wrote: On Sun, Nov 28, 2010 at 2:15 AM, Martin Hewitson martin.hewit...@aei.mpg.de wrote: Suppose I have a formal

RE: protocol and properties

2010-11-28 Thread Mario Kušnjer
Then I implement a class which implements this protocol. To do that I make a property: @property (nonatomic, readwrite, retain) NSArray * objects; and put the appropriate synthesize statement in the implementation. I get compiler warnings that this class doesn't

Re: protocol and properties

2010-11-28 Thread Stephen J. Butler
On Sun, Nov 28, 2010 at 3:15 AM, Martin Hewitson martin.hewit...@aei.mpg.de wrote: It 'works' for me too, I just warnings from Xcode. Anyway, I'll check in case I made a typo or something. I don't get any warnings. On 28, Nov, 2010, at 9:50 AM, Stephen J. Butler wrote: On Sun, Nov 28,

Re: protocol and properties

2010-11-28 Thread Martin Hewitson
OK, then it seems I didn't do something fundamentally wrong. Probably a stupid mistake somewhere. Thanks again! Martin On 28, Nov, 2010, at 10:26 AM, Stephen J. Butler wrote: On Sun, Nov 28, 2010 at 3:15 AM, Martin Hewitson martin.hewit...@aei.mpg.de wrote: It 'works' for me too, I just

Re: protocol and properties

2010-11-28 Thread Martin Hewitson
On 28, Nov, 2010, at 10:22 AM, Mario Kušnjer wrote: Then I implement a class which implements this protocol. To do that I make a property: @property (nonatomic, readwrite, retain) NSArray * objects; and put the appropriate synthesize statement in the implementation.