Re: multiple methods found warnings (errors)
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: 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