• 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: Art Isbell <email@hidden>
  • Date: Tue, 19 Jun 2001 17:20:44 -1000

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


  • Follow-Ups:
    • Re: A niceMessage in MyDocument
      • From: "David W. Halliday" <email@hidden>
References: 
 >Re: A niceMessage in MyDocument (From: "David W. Halliday" <email@hidden>)

  • Prev by Date: Fonts - type 1
  • Next by Date: Re: Further NSWindow and NSWindowController problems
  • Previous by thread: Re: A niceMessage in MyDocument
  • Next by thread: Re: A niceMessage in MyDocument
  • Index(es):
    • Date
    • Thread