• 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: Categories Generating Warnings?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Categories Generating Warnings?


  • Subject: Re: Categories Generating Warnings?
  • From: "M. Uli Kusterer" <email@hidden>
  • Date: Sat, 12 Feb 2005 00:56:06 +0100

At 14:45 Uhr -0800 11.02.2005, David Olbersen wrote:
Now that those methods are defined (TWRobot+Drawing.h) and implemented (TWRobot+Drawing.m) I'd like to use them in the core class (TWRobot.m). This works, I just get a lot of compiler warnings.

All the warnings are in the form:
`TWRobot' may not respond to `<method defined in TWRobot+Drawing.h>'
cannot find method `<method defined in TWRobot+Drawing.h>'; return type of `id' assumed


So like I said, everything works: when I call the methods they're executed as they should be, I've just got these ugly warnings all over the place. Am I doing something wrong or will I just have to live with it?

You need to include TWRobot+Drawing.h in the files you're using them in, otherwise the ObjC-compiler won't know that the method exists. Look up "compilation units" via Google to find out more about why this is so. It's also described in K&R, in case you have that book on the shelf.
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
References: 
 >Categories Generating Warnings? (From: David Olbersen <email@hidden>)

  • Prev by Date: Disappearing NSButtons
  • Next by Date: Re: [SOLVED] Disappearing NSButtons
  • Previous by thread: Re: Categories Generating Warnings?
  • Next by thread: Disappearing NSButtons
  • Index(es):
    • Date
    • Thread