projects
/
zxing.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Cleaned up the iPhone code so that it compiles with the 3.1.2 SDK. Also tightened...
[zxing.git]
/
iphone
/
Classes
/
EmailAction.m
diff --git
a/iphone/Classes/EmailAction.m
b/iphone/Classes/EmailAction.m
index
f9f142c
..
2f4fb01
100644
(file)
--- a/
iphone/Classes/EmailAction.m
+++ b/
iphone/Classes/EmailAction.m
@@
-37,14
+37,14
@@
static NSURL *MailtoURL(NSString *to, NSString *sub, NSString *body) {
return [NSURL URLWithString:result];
}
return [NSURL URLWithString:result];
}
-- initWithRecipient:(NSString *)rec subject:(NSString *)subject body:(NSString *)body {
+-
(id)
initWithRecipient:(NSString *)rec subject:(NSString *)subject body:(NSString *)body {
if ((self = [super initWithURL:MailtoURL(rec, subject, body)]) != nil) {
self.recipient = rec;
}
return self;
}
if ((self = [super initWithURL:MailtoURL(rec, subject, body)]) != nil) {
self.recipient = rec;
}
return self;
}
-+ actionWithRecipient:(NSString *)recipient subject:(NSString *)subject body:(NSString *)body {
++
(id)
actionWithRecipient:(NSString *)recipient subject:(NSString *)subject body:(NSString *)body {
return [[[self alloc] initWithRecipient:recipient subject:subject body:body] autorelease];
}
return [[[self alloc] initWithRecipient:recipient subject:subject body:body] autorelease];
}