• 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: "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-


References: 
 >Re: A niceMessage in MyDocument (From: "David P. Henderson" <email@hidden>)

  • Prev by Date: Sorry for email problems...
  • Next by Date: help with FSPathMakeRef
  • Previous by thread: Re: A niceMessage in MyDocument
  • Next by thread: Re: A niceMessage in MyDocument
  • Index(es):
    • Date
    • Thread