Re: WARNINGS from Compiler on "length" how to rid myself of them!
Re: WARNINGS from Compiler on "length" how to rid myself of them!
- Subject: Re: WARNINGS from Compiler on "length" how to rid myself of them!
- From: John Anderson <email@hidden>
- Date: Tue, 11 Jun 2002 11:41:00 -0700
Are you referring to the item as an id or an NSString pointer? If it's
the latter, that may be why. Try typecasting it in your message.
John
On Tuesday, June 11, 2002, at 11:06 AM, Chris Roberts wrote:
I get warnings using the following code:
if ([anObject length] >6){
.....
}
anObject is a NSString prototyped in the .h file.
The compiler still tells me that there is :
myController.m:561: warning: multiple declarations for method `length'
/System/Library/Frameworks/Foundation.framework/Headers/NSString.h:53:
warning: using `-(int unsigned)length'
/System/Library/Frameworks/AppKit.framework/Headers/NSStatusItem.h:42:
warning: also found `-(float)length'
How do I fix this ???
Chris Roberts
email@hidden
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.