]> granicus.if.org Git - graphviz/commitdiff
basic viewer app for Mac OS X
authorglenlow <devnull@localhost>
Mon, 4 Feb 2008 13:30:08 +0000 (13:30 +0000)
committerglenlow <devnull@localhost>
Mon, 4 Feb 2008 13:30:08 +0000 (13:30 +0000)
macosx/graphviz_prefix.pch [new file with mode: 0644]
macosx/main.m [new file with mode: 0644]

diff --git a/macosx/graphviz_prefix.pch b/macosx/graphviz_prefix.pch
new file mode 100644 (file)
index 0000000..b608f32
--- /dev/null
@@ -0,0 +1,21 @@
+/* $Id$ $Revision$ */
+/* vim:set shiftwidth=4 ts=8: */
+
+/**********************************************************
+*      This software is part of the graphviz package      *
+*                http://www.graphviz.org/                 *
+*                                                         *
+*            Copyright (c) 1994-2008 AT&T Corp.           *
+*                and is licensed under the                *
+*            Common Public License, Version 1.0           *
+*                      by AT&T Corp.                      *
+*                                                         *
+*        Information and Software Systems Research        *
+*              AT&T Research, Florham Park NJ             *
+**********************************************************/
+
+#ifdef __OBJC__
+    #import <Foundation/Foundation.h>
+       #import <AppKit/AppKit.h>
+       #import <Quartz/Quartz.h>
+#endif
diff --git a/macosx/main.m b/macosx/main.m
new file mode 100644 (file)
index 0000000..2a21993
--- /dev/null
@@ -0,0 +1,23 @@
+/* $Id$ $Revision$ */
+/* vim:set shiftwidth=4 ts=8: */
+
+/**********************************************************
+*      This software is part of the graphviz package      *
+*                http://www.graphviz.org/                 *
+*                                                         *
+*            Copyright (c) 1994-2008 AT&T Corp.           *
+*                and is licensed under the                *
+*            Common Public License, Version 1.0           *
+*                      by AT&T Corp.                      *
+*                                                         *
+*        Information and Software Systems Research        *
+*              AT&T Research, Florham Park NJ             *
+**********************************************************/
+
+#import <Foundation/Foundation.h>
+#import <AppKit/AppKit.h>
+
+int main(int argc, char *argv[])
+{
+    return NSApplicationMain(argc, (const char **) argv);
+}