Re: A niceMessage in MyDocument
Re: A niceMessage in MyDocument
- Subject: Re: A niceMessage in MyDocument
- From: "David P. Henderson" <email@hidden>
- Date: Tue, 19 Jun 2001 21:13:10 -0400
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.
Dave
--
Chaos Assembly Werks
"Beautiful bodies and beautiful personalities rarely go together."
- Carl Jung