• 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
Warning message using stringWithContentsOfFile:encoding:error:
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Warning message using stringWithContentsOfFile:encoding:error:


  • Subject: Warning message using stringWithContentsOfFile:encoding:error:
  • From: Paul Johnson <email@hidden>
  • Date: Sat, 27 Oct 2012 17:04:16 -0500

I get a compiler warning message at the following line of code:

NSString *text = [NSString stringWithContentsOfFile:fullPath encoding:
NSUTF8StringEncoding error:&error];

The warning message is:

Class method '+stringWithContentsOfFile:encoding:Rf_error' not found
(return type defaults to 'id')


I've found many code examples that have the same as my code and nothing
I've tried gets rid of the warning message. Can someone please enlighten me?
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Warning message using stringWithContentsOfFile:encoding:error:
      • From: Nick Zitzmann <email@hidden>
  • Prev by Date: Re: Scalability of CALayers
  • Next by Date: [ANN] zipzap -- zip file I/O library
  • Previous by thread: Re: Sandbox, security bookmarks and trash
  • Next by thread: Re: Warning message using stringWithContentsOfFile:encoding:error:
  • Index(es):
    • Date
    • Thread