Re: A niceMessage in MyDocument
Re: A niceMessage in MyDocument
- Subject: Re: A niceMessage in MyDocument
- From: "David W. Halliday" <email@hidden>
- Date: Tue, 19 Jun 2001 23:55:17 -0500
- Organization: Latin AmeriCom, formerly Latino Online
Art Isbell wrote:
>
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
As I acknowledged in another email, you are right about these
warnings. However, it will not solve the problem with his "(null)".
David email@hidden