Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!samsung!uunet!rosie!aozer From: aozer@next.com (Ali Ozer) Newsgroups: comp.sys.next Subject: Re: float c=[sliderA floatValue] won't compile-why? Message-ID: <1044@rosie.NeXT.COM> Date: 25 Jun 91 02:47:08 GMT References: <1163.2862231f@amy.skidmore.edu> Sender: news@NeXT.COM Distribution: usa Organization: Next Computer, Inc. Lines: 17 Nntp-Posting-Host: twinpeaks.next.com In article <1163.2862231f@amy.skidmore.edu> tholland@amy.skidmore.edu writes: >float c; >c = [sliderA floatValue]; > >... I get the following error: >"warning: cannot find method > warning: return type for 'floatValue" defaults to id > warning: incompatible types in assignment" Apparently the compiler could not find the method "floatValue" declared anywhere, so it assumes the method returns id, and the assignment of id to float rightfully generates the warning. In this case you should probably be importing or . Ali, Ali_Ozer@NeXT.com