• 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
(no subject)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

(no subject)


  • Subject: (no subject)
  • From: Kevin Bracey <email@hidden>
  • Date: Thu, 29 Apr 2004 19:24:33 +1200

Hi all,

I have encountered these warning and I'm wondering how to deal with them:

columnWidth is a float;

columnWidth = [[NSNumber numberWithUnsignedInt:[[tempHeaders objectAtIndex:i] length]] floatValue] * 10.0;


[tempHeaders objectAtIndex:i] will return a NSString but only I know that;-)

using '-(unsigned int)length NSString h:60
also found '-(float)length NSStatusItem h:44
multiple declarations for method 'length'

As you can see I had hoped that telling it that I was expecting a UnsignedInt would have fixed the warnings. I'm not to sure how to type cast something in Cocoa. I have used NSString length elsewhere without this problem.

thanks
Kevin Bracey

"Specialization is for Insects." -- Robert Heinlein
_______________________________________________
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.


  • Follow-Ups:
    • Re: multiple declarations for method length (was no subject)
      • From: "Louis C. Sacha" <email@hidden>
  • Prev by Date: Location from System Preferences
  • Next by Date: mouse events
  • Previous by thread: (no subject)
  • Next by thread: Re: multiple declarations for method length (was no subject)
  • Index(es):
    • Date
    • Thread