• 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: why do I get these compiler warnings?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: why do I get these compiler warnings?


  • Subject: Re: why do I get these compiler warnings?
  • From: Tommy Nordgren <email@hidden>
  • Date: Sun, 14 Dec 2008 20:39:11 +0100


On Dec 14, 2008, at 7:57 AM, Donald Hall wrote:

Hi all,

I am trying to use the NSString method ` +stringWithContentsOfFile:encoding:error:'

The documentation clearly says this method is available in OS X 10.4 and later. but I get the following warnings:

/Users/dhall/Projects/Script Timer 2.6 copy/AppController.m:658: warning: `NSString' may not respond to ` +stringWithContentsOfFile:encoding:error:'

/Users/dhall/Projects/Script Timer 2.6 copy/AppController.m:658: warning: cannot find method ` +stringWithContentsOfFile:encoding:error:'; return type `id' assumed

I am using the MacOSX10.4u.sdk. Development machine is running 10.5.5


Why would I be getting these warnings? At least on the development machine the program is working correctly.


Thanks,

Don
--
Donald S. Hall, Ph.D.
Apps & More Software Design, Inc.
email@hidden
http://www.appsandmore.com
_______________________________________________
Are you sure the flagged lines are executed when you tests?
You might have mistyped the method name. You might have typed a zero instead of
a capital O in the word Of of the selector.
-------------------------------------
This sig is dedicated to the advancement of Nuclear Power
Tommy Nordgren
email@hidden





_______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: why do I get these compiler warnings?
      • From: Tommy Nordgren <email@hidden>
References: 
 >why do I get these compiler warnings? (From: Donald Hall <email@hidden>)

  • Prev by Date: Re: Dashcode Xcode iPhone MapButton
  • Next by Date: Re: Soap request to a Web Service,
  • Previous by thread: why do I get these compiler warnings?
  • Next by thread: Re: why do I get these compiler warnings?
  • Index(es):
    • Date
    • Thread