Re: A niceMessage in MyDocument
Re: A niceMessage in MyDocument
- Subject: Re: A niceMessage in MyDocument
- From: "Joshua D. Orr" <email@hidden>
- Date: Thu, 21 Jun 2001 15:32:52 -0600
>
From: "David P. Henderson" <email@hidden>
>
Reply-To: Cocoa Developer <email@hidden>
>
Date: Tue, 19 Jun 2001 21:13:10 -0400
>
To: Cocoa Developer <email@hidden>
>
Subject: Re: A niceMessage in MyDocument
>
>
On Tuesday, June 19, 2001, at 07:19 , Joshua D. Orr wrote:
>
>
> also, if you are sending the message [[self document] niceMessage] in
>
> MyWindowController.m, then you are trying to send the niceMessage to a
>
> instance of MyWindowController, and not MyDocument.
>
>
>
This is completely incorrect. While self does in this instance represent
>
an instance of MyWindowController, the -document method of the
>
WindowController class returns the instance of the document object to
>
which it is connected. So as long as [self document] is returning an
>
actually instance of the MyDocument class (or subclass) it will respond
>
to the -niceMessage method.
Yes, sorry, my mistake, I misread that message for some reason...
-Joshua D. Orr-