Re: A niceMessage in MyDocument
Re: A niceMessage in MyDocument
- Subject: Re: A niceMessage in MyDocument
- From: Art Isbell <email@hidden>
- Date: Tue, 19 Jun 2001 17:20:44 -1000
On Tuesday, June 19, 2001, at 03:21 PM, David W. Halliday wrote:
However, since the returned type of "[self document]" is
"id" (at least, according to the online documentation) including the
"MyDocument.h" file will do no good. (However, if the return
type for "[self
document]" /were/ "id", the compiler /shouldn't/ be giving
these errors. Maybe
the /actual/ return type is (NSDocument *).)
Again, I think the above interpretation of this compiler
warning isn't correct. The compiler cannot find a method
declaration for the niceMessage method, not the document method,
so it defaults niceMessage's return type to id. I think that
merely importing MyDocument.h that declares niceMessage will
make the compiler happy. Ivan, is MyDocument.h imported into
MyWindowController.m?
Art