Re: Protocol-conforming object does not include retain?

2008-07-11 Thread Markus Spoettl
On Jul 11, 2008, at 9:57 PM, Michael Ash wrote: The key words here being "ever seen". Unless you have some more stuff in your code, the compiler has never seen a -foo:super:underConstruction: method. Ahhh-hh! That I didn't know, thanks for the explanation. Markus -- __

Re: Protocol-conforming object does not include retain?

2008-07-11 Thread Michael Ash
On Fri, Jul 11, 2008 at 11:52 PM, Markus Spoettl <[EMAIL PROTECTED]> wrote: > On Jul 11, 2008, at 7:59 PM, Bill Bumgarner wrote: >> >> id mGrid; >> >> ... you would be indicating to the compiler that mGrid might potentially >> respond to any method ever seen. > > I'm either misunderstand what you'r

Re: Protocol-conforming object does not include retain?

2008-07-11 Thread Bill Bumgarner
On Jul 11, 2008, at 8:52 PM, Markus Spoettl wrote: The only thing that removes that warning (for me) is an informal protocol on NSObject that declares the method. Meant to add this bit of code: @interface NewRootClass - (void) bobsYourUncle; @end int main (int argc, const char * argv[]) {

Re: Protocol-conforming object does not include retain?

2008-07-11 Thread Bill Bumgarner
On Jul 11, 2008, at 8:52 PM, Markus Spoettl wrote: On Jul 11, 2008, at 7:59 PM, Bill Bumgarner wrote: id mGrid; ... you would be indicating to the compiler that mGrid might potentially respond to any method ever seen. I'm either misunderstand what you're saying or something is wrong with

Re: Protocol-conforming object does not include retain?

2008-07-11 Thread Markus Spoettl
On Jul 11, 2008, at 7:59 PM, Bill Bumgarner wrote: id mGrid; ... you would be indicating to the compiler that mGrid might potentially respond to any method ever seen. I'm either misunderstand what you're saying or something is wrong with my compiler because this: id bar; [bar fo

Re: Protocol-conforming object does not include retain?

2008-07-11 Thread Bill Bumgarner
On Jul 11, 2008, at 7:39 PM, Steve Weller wrote: Why is this addition needed? I don't see it used in other code. It's as though the compiler believes that conformance to a protocol implies that it exclusively provides those methods, which is not the idea of protocol conformance at all. Tha

Protocol-conforming object does not include retain?

2008-07-11 Thread Steve Weller
I have a protocol and an object that conforms to that protocol referenced by an ivar: @protocol FKPointArraySourcing -(NSInteger)fooMethod; @end @interface FKObject : NSObject { id mGrid; } If I attempt to retain the ivar like this: [mGrid retain]; then I get a warning that "-retain w