Nick, I can't find any headers that #define 'Rf_error'. The warning message seems to be complaining about assigning to the type 'NString *' when type 'id' is expected, though.
I'm not sure where Rf_error is defined, but it must be in the Cocoa headers. Thanks for your reply. On Sat, Oct 27, 2012 at 5:37 PM, Nick Zitzmann <[email protected]> wrote: > > On Oct 27, 2012, at 4:04 PM, Paul Johnson <[email protected]> wrote: > > > 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? > > Check the headers. Is there anything that is #defining error to Rf_error? > > Nick Zitzmann > <http://www.chronosnet.com/> > > > > _______________________________________________ Cocoa-dev mailing list ([email protected]) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
