From 6de8cee785d3fad0da2ae595a2cea56c052dfe9c Mon Sep 17 00:00:00 2001 From: glenlow Date: Mon, 4 Feb 2008 13:30:08 +0000 Subject: [PATCH] basic viewer app for Mac OS X --- macosx/graphviz_prefix.pch | 21 +++++++++++++++++++++ macosx/main.m | 23 +++++++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 macosx/graphviz_prefix.pch create mode 100644 macosx/main.m diff --git a/macosx/graphviz_prefix.pch b/macosx/graphviz_prefix.pch new file mode 100644 index 000000000..b608f3206 --- /dev/null +++ b/macosx/graphviz_prefix.pch @@ -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 + #import + #import +#endif diff --git a/macosx/main.m b/macosx/main.m new file mode 100644 index 000000000..2a2199390 --- /dev/null +++ b/macosx/main.m @@ -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 +#import + +int main(int argc, char *argv[]) +{ + return NSApplicationMain(argc, (const char **) argv); +} -- 2.50.1