• 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: Dave Budde <email@hidden>
  • Date: Tue, 5 Sep 2006 09:20:09 -0700

Thanks, but that's what I already did.  Correct me if I am wrong, but I think this sould message in a NSString.

[[NSString localizedStringWithFormat: @"%i", label] drawInRect:(NSRect) NSMakeRect(10. * ix - 3. - labelWidth/2., 0., labelWidth, 12.)];
On Sep 5, 2006, at 9:06 AM, Shawn Erickson wrote:

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

References: 
 >multiple methods found warnings (errors) (From: Dave Budde <email@hidden>)
 >Re: multiple methods found warnings (errors) (From: "Shawn Erickson" <email@hidden>)

  • Prev by Date: Re: multiple methods found warnings (errors)
  • Next by Date: Re: (no subject)
  • Previous by thread: Re: multiple methods found warnings (errors)
  • Next by thread: Audio Units: sharing variable values between multiple channels
  • Index(es):
    • Date
    • Thread