diff options
Diffstat (limited to 'example/mac/macExample/macExample/main.mm')
-rw-r--r-- | example/mac/macExample/macExample/main.mm | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/example/mac/macExample/macExample/main.mm b/example/mac/macExample/macExample/main.mm new file mode 100644 index 00000000..be0c2229 --- /dev/null +++ b/example/mac/macExample/macExample/main.mm @@ -0,0 +1,19 @@ +// +// main.m +// testUI +// +// Created by DINH Viêt Hoà on 1/19/13. +// Copyright (c) 2013 MailCore. All rights reserved. +// + +#import <Cocoa/Cocoa.h> +#include <mailcore/mailcore.h> +#include <unicode/putil.h> + +int main(int argc, char *argv[]) +{ + u_setDataDirectory("/usr/local/share/icu"); + mailcore::AutoreleasePool * pool = new mailcore::AutoreleasePool(); + return NSApplicationMain(argc, (const char **)argv); + pool->release(); +} |