From 7a1e8490737db4734b3e8fc3374fabfdc49ee756 Mon Sep 17 00:00:00 2001 From: Chris Parker Date: Tue, 24 Feb 2009 09:58:03 +0800 Subject: [PATCH] Fix deprecated use of +stringWithContentsOfFile: Signed-off-by: Jonathan 'Wolf' Rentzsch --- Plugin/CTFsIFRSupport.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Plugin/CTFsIFRSupport.m b/Plugin/CTFsIFRSupport.m index 1f28d7d3..9c75592c 100644 --- a/Plugin/CTFsIFRSupport.m +++ b/Plugin/CTFsIFRSupport.m @@ -90,7 +90,8 @@ - (void) _disableSIFR NSString *addOnPath = [clickBundle pathForResource: jsFileName ofType: @"js"]; if( addOnPath ) { - NSString *sifrAddOnJS = [NSString stringWithContentsOfFile: addOnPath]; + NSStringEncoding enc ; + NSString *sifrAddOnJS = [NSString stringWithContentsOfFile: addOnPath usedEncoding: &enc error: nil]; if (sifrAddOnJS && ![sifrAddOnJS isEqualToString: @""]) [[sifrWebView windowScriptObject] evaluateWebScript: sifrAddOnJS];