• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: A niceMessage in MyDocument
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: A niceMessage in MyDocument
      • From: "Joshua D. Orr" <email@hidden>
References: 
 >Re: A niceMessage in MyDocument (From: "Joshua D. Orr" <email@hidden>)

  • Prev by Date: Re: A niceMessage in MyDocument
  • Next by Date: Re: A niceMessage in MyDocument
  • Previous by thread: Re: A niceMessage in MyDocument
  • Next by thread: Re: A niceMessage in MyDocument
  • Index(es):
    • Date
    • Thread