Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!caen!spool.mu.edu!agate!ziploc!eps From: eps@toaster.SFSU.EDU (Eric P. Scott) Newsgroups: comp.sys.next Subject: Re: float c=[sliderA floatValue] won't compile-why? Message-ID: <1791@toaster.SFSU.EDU> Date: 23 Jun 91 11:39:52 GMT Article-I.D.: toaster.1791 References: <1163.2862231f@amy.skidmore.edu> Reply-To: eps@cs.SFSU.EDU (Eric P. Scott) Organization: San Francisco State University Lines: 19 In article <1163.2862231f@amy.skidmore.edu> tholland@amy.skidmore.edu writes: >c = [sliderA floatValue]; >"warning: cannot find method > warning: return type for 'floatValue" defaults to id > warning: incompatible types in assignment" > >What's going wrong here ?? Suggestions ? You left out #import Since sliderA is presumably an id (rather than a "static type"), your code will still compile if you pull in ANYTHING with a floatValue method. But you really want to declare what you use... -=EPS=-