aboutsummaryrefslogtreecommitdiffhomepage
path: root/example/ios
diff options
context:
space:
mode:
authorGravatar Jonathan Willing <jwilling@me.com>2013-05-13 23:17:56 -0500
committerGravatar Jonathan Willing <jwilling@me.com>2013-05-13 23:17:56 -0500
commitd14a86e82a32d7ae923be1734c90d1efa38c6aba (patch)
tree9a38782f284966ee159734374f18d1ecd85dbac7 /example/ios
parent48557a19ecc02414a71ac34a9a4c33080fb2d812 (diff)
prefix private method, conform to coding conventions
Diffstat (limited to 'example/ios')
-rwxr-xr-xexample/ios/iOS UI Test/iOS UI Test/MCOMessageView.mm5
1 files changed, 3 insertions, 2 deletions
diff --git a/example/ios/iOS UI Test/iOS UI Test/MCOMessageView.mm b/example/ios/iOS UI Test/iOS UI Test/MCOMessageView.mm
index 941a6703..8ec27f64 100755
--- a/example/ios/iOS UI Test/iOS UI Test/MCOMessageView.mm
+++ b/example/ios/iOS UI Test/iOS UI Test/MCOMessageView.mm
@@ -130,7 +130,7 @@
NSData * downloadedData = [[self delegate] MCOMessageView:self dataForPartWithUniqueID:partUniqueID];
NSData * previewData = [[self delegate] MCOMessageView:self previewForData:downloadedData isHTMLInlineImage:[MCOCIDURLProtocol isCID:url]];
NSString *filename = [NSString stringWithFormat:@"%lu", (unsigned long)urlString.hash];
- NSURL *cacheURL = [self cacheJPEGImageData:previewData withFilename:filename];
+ NSURL *cacheURL = [self _cacheJPEGImageData:previewData withFilename:filename];
NSString *replaceScript = [NSString stringWithFormat:@"replaceImageSrc(\"%@\", \"%@\")", urlString, cacheURL.absoluteString];
[_webView stringByEvaluatingJavaScriptFromString:replaceScript];
@@ -145,7 +145,8 @@
}
}
-- (NSURL *)cacheJPEGImageData:(NSData *)imageData withFilename:(NSString *)filename {
+- (NSURL *) _cacheJPEGImageData:(NSData *)imageData withFilename:(NSString *)filename
+{
NSString *path = [[NSTemporaryDirectory() stringByAppendingPathComponent:filename] stringByAppendingPathExtension:@"jpg"];
[imageData writeToFile:path atomically:YES];
return [NSURL fileURLWithPath:path];