• 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: WARNINGS from Compiler on "length" how to rid myself of them!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >WARNINGS from Compiler on "length" how to rid myself of them! (From: Chris Roberts <email@hidden>)

  • Prev by Date: Re: Drag and Drop Oddities
  • Next by Date: [ANN] UAC 1.0
  • Previous by thread: WARNINGS from Compiler on "length" how to rid myself of them!
  • Next by thread: Re: WARNINGS from Compiler on "length" how to rid myself of them!
  • Index(es):
    • Date
    • Thread