Permalink
Browse files

Converted sample projects to latest Xcode project format and converte…

…d files from tabs to spaces
  • Loading branch information...
1 parent d6f68a6 commit 7c13b7b9518e0bc2cdd86e092245e0e05afa0239 @mronge mronge committed May 30, 2012
Showing with 2,157 additions and 2,156 deletions.
  1. +7 −7 Examples/OSX/InboxLister/InboxLister.xcodeproj/project.pbxproj
  2. +3 −3 Examples/OSX/InboxLister/MyController.h
  3. +40 −40 Examples/OSX/InboxLister/MyController.m
  4. +5 −5 Examples/OSX/MessageSender/MessageSender.xcodeproj/project.pbxproj
  5. +3 −3 Examples/OSX/MessageSender/MyController.h
  6. +31 −31 Examples/OSX/MessageSender/MyController.m
  7. +5 −5 Examples/iOS/MessageSender/MessageSender/ViewController.m
  8. +3 −3 Source/CTBareAttachment.h
  9. +16 −16 Source/CTBareAttachment.m
  10. +2 −2 Source/CTBareMessage.h
  11. +10 −10 Source/CTBareMessage.m
  12. +28 −28 Source/CTCoreAccount.h
  13. +158 −157 Source/CTCoreAccount.m
  14. +15 −15 Source/CTCoreAddress.h
  15. +31 −31 Source/CTCoreAddress.m
  16. +2 −2 Source/CTCoreAttachment.h
  17. +35 −35 Source/CTCoreAttachment.m
  18. +59 −59 Source/CTCoreFolder.h
  19. +491 −491 Source/CTCoreFolder.m
  20. +49 −49 Source/CTCoreMessage.h
  21. +386 −386 Source/CTCoreMessage.m
  22. +3 −3 Source/CTESMTP.h
  23. +65 −65 Source/CTESMTP.m
  24. +2 −2 Source/CTMIME.h
  25. +69 −69 Source/CTMIME.m
  26. +2 −2 Source/CTMIMEFactory.h
  27. +39 −39 Source/CTMIMEFactory.m
  28. +1 −1 Source/CTMIME_Enumerator.h
  29. +35 −35 Source/CTMIME_Enumerator.m
  30. +63 −63 Source/CTMIME_HtmlPart.m
  31. +2 −2 Source/CTMIME_MessagePart.h
  32. +27 −27 Source/CTMIME_MessagePart.m
  33. +1 −1 Source/CTMIME_MultiPart.h
  34. +34 −34 Source/CTMIME_MultiPart.m
  35. +7 −7 Source/CTMIME_SinglePart.h
  36. +110 −110 Source/CTMIME_SinglePart.m
  37. +59 −59 Source/CTMIME_TextPart.m
  38. +4 −4 Source/CTSMTP.h
  39. +33 −33 Source/CTSMTP.m
  40. +55 −55 Source/CTSMTPAsyncConnection.m
  41. +14 −14 Source/CTSMTPConnection.h
  42. +32 −32 Source/CTSMTPConnection.m
  43. +3 −3 Source/MailCoreTypes.h
  44. +1 −1 Source/MailCoreUtilities.h
  45. +32 −32 Source/MailCoreUtilities.m
  46. +85 −85 main.m
@@ -3,7 +3,7 @@
archiveVersion = 1;
classes = {
};
- objectVersion = 42;
+ objectVersion = 46;
objects = {
/* Begin PBXBuildFile section */
@@ -87,6 +87,8 @@
080E96DDFE201D6D7F000001 /* Classes */ = {
isa = PBXGroup;
children = (
+ F8FF333D09D272810051FC62 /* MyController.m */,
+ F8FF333C09D272810051FC62 /* MyController.h */,
);
name = Classes;
sourceTree = "<group>";
@@ -136,8 +138,6 @@
children = (
32CA4F630368D1EE00C91783 /* InboxLister_Prefix.pch */,
29B97316FDCFA39411CA2CEA /* main.m */,
- F8FF333C09D272810051FC62 /* MyController.h */,
- F8FF333D09D272810051FC62 /* MyController.m */,
);
name = "Other Sources";
sourceTree = "<group>";
@@ -198,8 +198,11 @@
/* Begin PBXProject section */
29B97313FDCFA39411CA2CEA /* Project object */ = {
isa = PBXProject;
+ attributes = {
+ LastUpgradeCheck = 0430;
+ };
buildConfigurationList = C01FCF4E08A954540054247B /* Build configuration list for PBXProject "InboxLister" */;
- compatibilityVersion = "Xcode 2.4";
+ compatibilityVersion = "Xcode 3.2";
developmentRegion = English;
hasScannedForEncodings = 1;
knownRegions = (
@@ -293,7 +296,6 @@
buildSettings = {
COPY_PHASE_STRIP = NO;
GCC_DYNAMIC_NO_PIC = NO;
- GCC_ENABLE_FIX_AND_CONTINUE = YES;
GCC_MODEL_TUNING = G5;
GCC_OPTIMIZATION_LEVEL = 0;
HEADER_SEARCH_PATHS = (
@@ -329,7 +331,6 @@
buildSettings = {
GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
- PREBINDING = NO;
SDKROOT = macosx;
};
name = Debug;
@@ -339,7 +340,6 @@
buildSettings = {
GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
- PREBINDING = NO;
SDKROOT = macosx;
};
name = Release;
@@ -9,10 +9,10 @@
IBOutlet id port;
IBOutlet id server;
IBOutlet id username;
- IBOutlet id useTLS;
+ IBOutlet id useTLS;
- CTCoreAccount *myAccount;
- NSMutableArray *myMessages;
+ CTCoreAccount *myAccount;
+ NSMutableArray *myMessages;
}
- (IBAction)connect:(id)sender;
- (NSMutableArray *)messages;
@@ -3,65 +3,65 @@
@implementation MyController
- (id)init
{
- self = [super init];
- if(self)
- {
- myAccount = [[CTCoreAccount alloc] init];
- myMessages = [[NSMutableArray alloc] init];
- }
- return self;
+ self = [super init];
+ if(self)
+ {
+ myAccount = [[CTCoreAccount alloc] init];
+ myMessages = [[NSMutableArray alloc] init];
+ }
+ return self;
}
- (void)dealloc
{
- [myAccount release];
- [myMessages release];
- [super dealloc];
+ [myAccount release];
+ [myMessages release];
+ [super dealloc];
}
- (IBAction)connect:(id)sender
{
- NSLog(@"Connecting...");
-
- if ([useTLS state] == NSOnState )
- {
- [myAccount connectToServer:[server stringValue] port:[port intValue] connectionType:CONNECTION_TYPE_TLS
- authType:IMAP_AUTH_TYPE_PLAIN login:[username stringValue] password:[password stringValue]];
- }
- else
- {
- [myAccount connectToServer:[server stringValue] port:[port intValue] connectionType:CONNECTION_TYPE_PLAIN
- authType:IMAP_AUTH_TYPE_PLAIN login:[username stringValue] password:[password stringValue]];
- }
- CTCoreFolder *inbox = [myAccount folderWithPath:@"INBOX"];
- NSLog(@"INBOX %@", inbox);
- // set the toIndex to 0 so all messages are loaded
- NSSet *messageSet = [inbox messageObjectsFromIndex:1 toIndex:0];
- NSLog(@"Done getting list of messages...");
-
- NSMutableSet *messagesProxy = [self mutableSetValueForKey:@"messages"];
- NSEnumerator *objEnum = [messageSet objectEnumerator];
- id msg;
-
- while(msg = [objEnum nextObject]) {
- [msg fetchBodyStructure];
- [messagesProxy addObject:msg];
- }
+ NSLog(@"Connecting...");
+
+ if ([useTLS state] == NSOnState )
+ {
+ [myAccount connectToServer:[server stringValue] port:[port intValue] connectionType:CONNECTION_TYPE_TLS
+ authType:IMAP_AUTH_TYPE_PLAIN login:[username stringValue] password:[password stringValue]];
+ }
+ else
+ {
+ [myAccount connectToServer:[server stringValue] port:[port intValue] connectionType:CONNECTION_TYPE_PLAIN
+ authType:IMAP_AUTH_TYPE_PLAIN login:[username stringValue] password:[password stringValue]];
+ }
+ CTCoreFolder *inbox = [myAccount folderWithPath:@"INBOX"];
+ NSLog(@"INBOX %@", inbox);
+ // set the toIndex to 0 so all messages are loaded
+ NSSet *messageSet = [inbox messageObjectsFromIndex:1 toIndex:0];
+ NSLog(@"Done getting list of messages...");
+
+ NSMutableSet *messagesProxy = [self mutableSetValueForKey:@"messages"];
+ NSEnumerator *objEnum = [messageSet objectEnumerator];
+ id msg;
+
+ while(msg = [objEnum nextObject]) {
+ [msg fetchBodyStructure];
+ [messagesProxy addObject:msg];
+ }
}
- (NSMutableArray *)messages
{
- return myMessages;
+ return myMessages;
}
- (void)setMessages:(NSMutableArray *)messages
{
- [messages retain];
- [myMessages release];
- myMessages = messages;
+ [messages retain];
+ [myMessages release];
+ myMessages = messages;
}
@end
@@ -3,7 +3,7 @@
archiveVersion = 1;
classes = {
};
- objectVersion = 42;
+ objectVersion = 46;
objects = {
/* Begin PBXBuildFile section */
@@ -197,8 +197,11 @@
/* Begin PBXProject section */
29B97313FDCFA39411CA2CEA /* Project object */ = {
isa = PBXProject;
+ attributes = {
+ LastUpgradeCheck = 0430;
+ };
buildConfigurationList = C01FCF4E08A954540054247B /* Build configuration list for PBXProject "MessageSender" */;
- compatibilityVersion = "Xcode 2.4";
+ compatibilityVersion = "Xcode 3.2";
developmentRegion = English;
hasScannedForEncodings = 1;
knownRegions = (
@@ -292,7 +295,6 @@
buildSettings = {
COPY_PHASE_STRIP = NO;
GCC_DYNAMIC_NO_PIC = NO;
- GCC_ENABLE_FIX_AND_CONTINUE = YES;
GCC_MODEL_TUNING = G5;
GCC_OPTIMIZATION_LEVEL = 0;
HEADER_SEARCH_PATHS = (
@@ -328,7 +330,6 @@
buildSettings = {
GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
- PREBINDING = NO;
SDKROOT = macosx;
};
name = Debug;
@@ -338,7 +339,6 @@
buildSettings = {
GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
- PREBINDING = NO;
SDKROOT = macosx;
};
name = Release;
@@ -9,10 +9,10 @@
IBOutlet id port;
IBOutlet id server;
IBOutlet id username;
- IBOutlet id useAuth;
- IBOutlet id useTLS;
+ IBOutlet id useAuth;
+ IBOutlet id useTLS;
- CTCoreMessage *myMessage;
+ CTCoreMessage *myMessage;
}
- (IBAction)sendMessage:(id)sender;
- (NSString *)to;
@@ -3,77 +3,77 @@
@implementation MyController
- (id)init
{
- self = [super init];
- if(self)
- {
- myMessage = [[CTCoreMessage alloc] init];
- }
- return self;
+ self = [super init];
+ if(self)
+ {
+ myMessage = [[CTCoreMessage alloc] init];
+ }
+ return self;
}
- (void)dealloc
{
- [myMessage release];
- [super dealloc];
+ [myMessage release];
+ [super dealloc];
}
- (IBAction)sendMessage:(id)sender
{
- CTCoreMessage *msg = [[CTCoreMessage alloc] init];
- [msg setTo:[myMessage to]];
- [msg setFrom:[myMessage from]];
- [msg setBody:[myMessage body]];
- [msg setSubject:[myMessage subject]];
+ CTCoreMessage *msg = [[CTCoreMessage alloc] init];
+ [msg setTo:[myMessage to]];
+ [msg setFrom:[myMessage from]];
+ [msg setBody:[myMessage body]];
+ [msg setSubject:[myMessage subject]];
- BOOL auth = ([useAuth state] == NSOnState);
- BOOL tls = ([useTLS state] == NSOnState);
- [CTSMTPConnection sendMessage:msg server:[server stringValue] username:[username stringValue]
- password:[password stringValue] port:[port intValue] useTLS:tls useAuth:auth];
- [msg release];
+ BOOL auth = ([useAuth state] == NSOnState);
+ BOOL tls = ([useTLS state] == NSOnState);
+ [CTSMTPConnection sendMessage:msg server:[server stringValue] username:[username stringValue]
+ password:[password stringValue] port:[port intValue] useTLS:tls useAuth:auth];
+ [msg release];
}
- (NSString *)to
{
- return [[[myMessage to] anyObject] email];
+ return [[[myMessage to] anyObject] email];
}
- (void)setTo:(NSString *)aValue
{
- CTCoreAddress *addr = [CTCoreAddress address];
- [addr setEmail:aValue];
- [myMessage setTo:[NSSet setWithObject:addr]];
+ CTCoreAddress *addr = [CTCoreAddress address];
+ [addr setEmail:aValue];
+ [myMessage setTo:[NSSet setWithObject:addr]];
}
- (NSString *)from
{
- return [[[myMessage from] anyObject] email];
+ return [[[myMessage from] anyObject] email];
}
- (void)setFrom:(NSString *)aValue
{
- CTCoreAddress *addr = [CTCoreAddress address];
- [addr setEmail:aValue];
- [addr setName:@""];
- [myMessage setFrom:[NSSet setWithObject:addr]];
+ CTCoreAddress *addr = [CTCoreAddress address];
+ [addr setEmail:aValue];
+ [addr setName:@""];
+ [myMessage setFrom:[NSSet setWithObject:addr]];
}
- (NSString *)subject
{
- return [myMessage subject];
+ return [myMessage subject];
}
- (void)setSubject:(NSString *)aValue
{
- [myMessage setSubject:aValue];
+ [myMessage setSubject:aValue];
}
- (NSString *)body
{
- return [myMessage body];
+ return [myMessage body];
}
- (void)setBody:(NSString *)aValue
{
- [myMessage setBody:aValue];
+ [myMessage setBody:aValue];
}
@end
@@ -21,13 +21,13 @@ - (void)didReceiveMemoryWarning
- (void)viewDidLoad
{
[super viewDidLoad];
- // Do any additional setup after loading the view, typically from a nib.
-
+ // Do any additional setup after loading the view, typically from a nib.
+
CTCoreMessage *msg = [[CTCoreMessage alloc] init];
// [CTSMTPConnection sendMessage:msg server:[server stringValue] username:[username stringValue]
// password:[password stringValue] port:[port intValue] useTLS:tls useAuth:auth];
- [msg release];
+ [msg release];
}
- (void)viewDidUnload
@@ -49,12 +49,12 @@ - (void)viewDidAppear:(BOOL)animated
- (void)viewWillDisappear:(BOOL)animated
{
- [super viewWillDisappear:animated];
+ [super viewWillDisappear:animated];
}
- (void)viewDidDisappear:(BOOL)animated
{
- [super viewDidDisappear:animated];
+ [super viewDidDisappear:animated];
}
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
@@ -36,9 +36,9 @@
//TODO Document me
@interface CTBareAttachment : NSObject {
- CTMIME_SinglePart *mMIMEPart;
- NSString *mFilename;
- NSString *mContentType;
+ CTMIME_SinglePart *mMIMEPart;
+ NSString *mFilename;
+ NSString *mContentType;
}
@property(retain) NSString *filename;
@property(retain) NSString *contentType;
Oops, something went wrong.

0 comments on commit 7c13b7b

Please sign in to comment.