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


References: 
 >Re: A niceMessage in MyDocument (From: Art Isbell <email@hidden>)

  • Prev by Date: Sending messages to nil -- anyway to detect this?
  • Next by Date: Re: How do I add a "New Folder" button?
  • Previous by thread: Re: A niceMessage in MyDocument
  • Next by thread: Re: A niceMessage in MyDocument
  • Index(es):
    • Date
    • Thread