• 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: multiple methods found warnings (errors)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: multiple methods found warnings (errors)


  • Subject: Re: multiple methods found warnings (errors)
  • From: "Shawn Erickson" <email@hidden>
  • Date: Tue, 5 Sep 2006 09:06:44 -0700

On 9/5/06, Dave Budde <email@hidden> wrote:
I am working on a cocoa app and I am getting the following warning
messages that don't allow the program to run:
warning: also found '-(void)drawInRect...               location: NSStringDrawinf.h
warning: also found '-(B OOL)drawInRect...              location: NSImageRep.h
warning: multiple methods named "-drawInRect:' found

The only import I do (other than my own files ) is <Cocoa/Cocoa.h>.
How does this happen and how do i get rid of it?

Likely usage of drawInRect: in your code is causing this. Find its usage and help the compiler understand if the object you are messaging is expected to be a NSString or NSImageRep... you can do that by casting, by setting the class type of the variable involved, etc.

-Shawn
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: multiple methods found warnings (errors)
      • From: Dave Budde <email@hidden>
References: 
 >multiple methods found warnings (errors) (From: Dave Budde <email@hidden>)

  • Prev by Date: multiple methods found warnings (errors)
  • Next by Date: Re: multiple methods found warnings (errors)
  • Previous by thread: multiple methods found warnings (errors)
  • Next by thread: Re: multiple methods found warnings (errors)
  • Index(es):
    • Date
    • Thread