[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r8398 - in gnunet-cocoa: . GNUnet Setup GNUnet Setup/Englis
From: |
gnunet |
Subject: |
[GNUnet-SVN] r8398 - in gnunet-cocoa: . GNUnet Setup GNUnet Setup/English.lproj GNUnet Setup/English.lproj/MainMenu.nib GNUnet Setup/GNUnet Setup.xcodeproj GNUnet Setup/Package |
Date: |
Wed, 8 Apr 2009 08:51:31 -0600 |
Author: holindho
Date: 2009-04-08 08:51:31 -0600 (Wed, 08 Apr 2009)
New Revision: 8398
Added:
gnunet-cocoa/GNUnet Setup/
gnunet-cocoa/GNUnet Setup/COPYING
gnunet-cocoa/GNUnet Setup/English.lproj/
gnunet-cocoa/GNUnet Setup/English.lproj/InfoPlist.strings
gnunet-cocoa/GNUnet Setup/English.lproj/MainMenu.nib/
gnunet-cocoa/GNUnet Setup/English.lproj/MainMenu.nib/classes.nib
gnunet-cocoa/GNUnet Setup/English.lproj/MainMenu.nib/info.nib
gnunet-cocoa/GNUnet Setup/English.lproj/MainMenu.nib/keyedobjects.nib
gnunet-cocoa/GNUnet Setup/GNSetup.h
gnunet-cocoa/GNUnet Setup/GNSetup.m
gnunet-cocoa/GNUnet Setup/GNUnet Setup.xcodeproj/
gnunet-cocoa/GNUnet Setup/GNUnet Setup.xcodeproj/project.pbxproj
gnunet-cocoa/GNUnet Setup/GNUnetSetup-icon.icns
gnunet-cocoa/GNUnet Setup/Info.plist
gnunet-cocoa/GNUnet Setup/Package/
gnunet-cocoa/GNUnet Setup/Package/Description.plist
gnunet-cocoa/GNUnet Setup/Package/IFRequirement.strings
gnunet-cocoa/GNUnet Setup/Package/Info.plist
gnunet-cocoa/GNUnet Setup/build-package.sh
gnunet-cocoa/GNUnet Setup/main.m
Log:
cocoa app for gnunet setup
Added: gnunet-cocoa/GNUnet Setup/COPYING
===================================================================
--- gnunet-cocoa/GNUnet Setup/COPYING (rev 0)
+++ gnunet-cocoa/GNUnet Setup/COPYING 2009-04-08 14:51:31 UTC (rev 8398)
@@ -0,0 +1,339 @@
+ GNU GENERAL PUBLIC LICENSE
+ Version 2, June 1991
+
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+ Preamble
+
+ The licenses for most software are designed to take away your
+freedom to share and change it. By contrast, the GNU General Public
+License is intended to guarantee your freedom to share and change free
+software--to make sure the software is free for all its users. This
+General Public License applies to most of the Free Software
+Foundation's software and to any other program whose authors commit to
+using it. (Some other Free Software Foundation software is covered by
+the GNU Lesser General Public License instead.) You can apply it to
+your programs, too.
+
+ When we speak of free software, we are referring to freedom, not
+price. Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+this service if you wish), that you receive source code or can get it
+if you want it, that you can change the software or use pieces of it
+in new free programs; and that you know you can do these things.
+
+ To protect your rights, we need to make restrictions that forbid
+anyone to deny you these rights or to ask you to surrender the rights.
+These restrictions translate to certain responsibilities for you if you
+distribute copies of the software, or if you modify it.
+
+ For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must give the recipients all the rights that
+you have. You must make sure that they, too, receive or can get the
+source code. And you must show them these terms so they know their
+rights.
+
+ We protect your rights with two steps: (1) copyright the software, and
+(2) offer you this license which gives you legal permission to copy,
+distribute and/or modify the software.
+
+ Also, for each author's protection and ours, we want to make certain
+that everyone understands that there is no warranty for this free
+software. If the software is modified by someone else and passed on, we
+want its recipients to know that what they have is not the original, so
+that any problems introduced by others will not reflect on the original
+authors' reputations.
+
+ Finally, any free program is threatened constantly by software
+patents. We wish to avoid the danger that redistributors of a free
+program will individually obtain patent licenses, in effect making the
+program proprietary. To prevent this, we have made it clear that any
+patent must be licensed for everyone's free use or not licensed at all.
+
+ The precise terms and conditions for copying, distribution and
+modification follow.
+
+ GNU GENERAL PUBLIC LICENSE
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+ 0. This License applies to any program or other work which contains
+a notice placed by the copyright holder saying it may be distributed
+under the terms of this General Public License. The "Program", below,
+refers to any such program or work, and a "work based on the Program"
+means either the Program or any derivative work under copyright law:
+that is to say, a work containing the Program or a portion of it,
+either verbatim or with modifications and/or translated into another
+language. (Hereinafter, translation is included without limitation in
+the term "modification".) Each licensee is addressed as "you".
+
+Activities other than copying, distribution and modification are not
+covered by this License; they are outside its scope. The act of
+running the Program is not restricted, and the output from the Program
+is covered only if its contents constitute a work based on the
+Program (independent of having been made by running the Program).
+Whether that is true depends on what the Program does.
+
+ 1. You may copy and distribute verbatim copies of the Program's
+source code as you receive it, in any medium, provided that you
+conspicuously and appropriately publish on each copy an appropriate
+copyright notice and disclaimer of warranty; keep intact all the
+notices that refer to this License and to the absence of any warranty;
+and give any other recipients of the Program a copy of this License
+along with the Program.
+
+You may charge a fee for the physical act of transferring a copy, and
+you may at your option offer warranty protection in exchange for a fee.
+
+ 2. You may modify your copy or copies of the Program or any portion
+of it, thus forming a work based on the Program, and copy and
+distribute such modifications or work under the terms of Section 1
+above, provided that you also meet all of these conditions:
+
+ a) You must cause the modified files to carry prominent notices
+ stating that you changed the files and the date of any change.
+
+ b) You must cause any work that you distribute or publish, that in
+ whole or in part contains or is derived from the Program or any
+ part thereof, to be licensed as a whole at no charge to all third
+ parties under the terms of this License.
+
+ c) If the modified program normally reads commands interactively
+ when run, you must cause it, when started running for such
+ interactive use in the most ordinary way, to print or display an
+ announcement including an appropriate copyright notice and a
+ notice that there is no warranty (or else, saying that you provide
+ a warranty) and that users may redistribute the program under
+ these conditions, and telling the user how to view a copy of this
+ License. (Exception: if the Program itself is interactive but
+ does not normally print such an announcement, your work based on
+ the Program is not required to print an announcement.)
+
+These requirements apply to the modified work as a whole. If
+identifiable sections of that work are not derived from the Program,
+and can be reasonably considered independent and separate works in
+themselves, then this License, and its terms, do not apply to those
+sections when you distribute them as separate works. But when you
+distribute the same sections as part of a whole which is a work based
+on the Program, the distribution of the whole must be on the terms of
+this License, whose permissions for other licensees extend to the
+entire whole, and thus to each and every part regardless of who wrote it.
+
+Thus, it is not the intent of this section to claim rights or contest
+your rights to work written entirely by you; rather, the intent is to
+exercise the right to control the distribution of derivative or
+collective works based on the Program.
+
+In addition, mere aggregation of another work not based on the Program
+with the Program (or with a work based on the Program) on a volume of
+a storage or distribution medium does not bring the other work under
+the scope of this License.
+
+ 3. You may copy and distribute the Program (or a work based on it,
+under Section 2) in object code or executable form under the terms of
+Sections 1 and 2 above provided that you also do one of the following:
+
+ a) Accompany it with the complete corresponding machine-readable
+ source code, which must be distributed under the terms of Sections
+ 1 and 2 above on a medium customarily used for software interchange; or,
+
+ b) Accompany it with a written offer, valid for at least three
+ years, to give any third party, for a charge no more than your
+ cost of physically performing source distribution, a complete
+ machine-readable copy of the corresponding source code, to be
+ distributed under the terms of Sections 1 and 2 above on a medium
+ customarily used for software interchange; or,
+
+ c) Accompany it with the information you received as to the offer
+ to distribute corresponding source code. (This alternative is
+ allowed only for noncommercial distribution and only if you
+ received the program in object code or executable form with such
+ an offer, in accord with Subsection b above.)
+
+The source code for a work means the preferred form of the work for
+making modifications to it. For an executable work, complete source
+code means all the source code for all modules it contains, plus any
+associated interface definition files, plus the scripts used to
+control compilation and installation of the executable. However, as a
+special exception, the source code distributed need not include
+anything that is normally distributed (in either source or binary
+form) with the major components (compiler, kernel, and so on) of the
+operating system on which the executable runs, unless that component
+itself accompanies the executable.
+
+If distribution of executable or object code is made by offering
+access to copy from a designated place, then offering equivalent
+access to copy the source code from the same place counts as
+distribution of the source code, even though third parties are not
+compelled to copy the source along with the object code.
+
+ 4. You may not copy, modify, sublicense, or distribute the Program
+except as expressly provided under this License. Any attempt
+otherwise to copy, modify, sublicense or distribute the Program is
+void, and will automatically terminate your rights under this License.
+However, parties who have received copies, or rights, from you under
+this License will not have their licenses terminated so long as such
+parties remain in full compliance.
+
+ 5. You are not required to accept this License, since you have not
+signed it. However, nothing else grants you permission to modify or
+distribute the Program or its derivative works. These actions are
+prohibited by law if you do not accept this License. Therefore, by
+modifying or distributing the Program (or any work based on the
+Program), you indicate your acceptance of this License to do so, and
+all its terms and conditions for copying, distributing or modifying
+the Program or works based on it.
+
+ 6. Each time you redistribute the Program (or any work based on the
+Program), the recipient automatically receives a license from the
+original licensor to copy, distribute or modify the Program subject to
+these terms and conditions. You may not impose any further
+restrictions on the recipients' exercise of the rights granted herein.
+You are not responsible for enforcing compliance by third parties to
+this License.
+
+ 7. If, as a consequence of a court judgment or allegation of patent
+infringement or for any other reason (not limited to patent issues),
+conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot
+distribute so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you
+may not distribute the Program at all. For example, if a patent
+license would not permit royalty-free redistribution of the Program by
+all those who receive copies directly or indirectly through you, then
+the only way you could satisfy both it and this License would be to
+refrain entirely from distribution of the Program.
+
+If any portion of this section is held invalid or unenforceable under
+any particular circumstance, the balance of the section is intended to
+apply and the section as a whole is intended to apply in other
+circumstances.
+
+It is not the purpose of this section to induce you to infringe any
+patents or other property right claims or to contest validity of any
+such claims; this section has the sole purpose of protecting the
+integrity of the free software distribution system, which is
+implemented by public license practices. Many people have made
+generous contributions to the wide range of software distributed
+through that system in reliance on consistent application of that
+system; it is up to the author/donor to decide if he or she is willing
+to distribute software through any other system and a licensee cannot
+impose that choice.
+
+This section is intended to make thoroughly clear what is believed to
+be a consequence of the rest of this License.
+
+ 8. If the distribution and/or use of the Program is restricted in
+certain countries either by patents or by copyrighted interfaces, the
+original copyright holder who places the Program under this License
+may add an explicit geographical distribution limitation excluding
+those countries, so that distribution is permitted only in or among
+countries not thus excluded. In such case, this License incorporates
+the limitation as if written in the body of this License.
+
+ 9. The Free Software Foundation may publish revised and/or new versions
+of the General Public License from time to time. Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+Each version is given a distinguishing version number. If the Program
+specifies a version number of this License which applies to it and "any
+later version", you have the option of following the terms and conditions
+either of that version or of any later version published by the Free
+Software Foundation. If the Program does not specify a version number of
+this License, you may choose any version ever published by the Free Software
+Foundation.
+
+ 10. If you wish to incorporate parts of the Program into other free
+programs whose distribution conditions are different, write to the author
+to ask for permission. For software which is copyrighted by the Free
+Software Foundation, write to the Free Software Foundation; we sometimes
+make exceptions for this. Our decision will be guided by the two goals
+of preserving the free status of all derivatives of our free software and
+of promoting the sharing and reuse of software generally.
+
+ NO WARRANTY
+
+ 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
+FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
+OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
+PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
+OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
+TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
+PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
+REPAIR OR CORRECTION.
+
+ 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
+REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
+INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
+OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
+TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
+YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
+PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGES.
+
+ END OF TERMS AND CONDITIONS
+
+ How to Apply These Terms to Your New Programs
+
+ If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+ To do so, attach the following notices to the program. It is safest
+to attach them to the start of each source file to most effectively
+convey the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+ <one line to give the program's name and a brief idea of what it does.>
+ Copyright (C) <year> <name of author>
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License along
+ with this program; if not, write to the Free Software Foundation, Inc.,
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+
+Also add information on how to contact you by electronic and paper mail.
+
+If the program is interactive, make it output a short notice like this
+when it starts in an interactive mode:
+
+ Gnomovision version 69, Copyright (C) year name of author
+ Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+ This is free software, and you are welcome to redistribute it
+ under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License. Of course, the commands you use may
+be called something other than `show w' and `show c'; they could even be
+mouse-clicks or menu items--whatever suits your program.
+
+You should also get your employer (if you work as a programmer) or your
+school, if any, to sign a "copyright disclaimer" for the program, if
+necessary. Here is a sample; alter the names:
+
+ Yoyodyne, Inc., hereby disclaims all copyright interest in the program
+ `Gnomovision' (which makes passes at compilers) written by James Hacker.
+
+ <signature of Ty Coon>, 1 April 1989
+ Ty Coon, President of Vice
+
+This General Public License does not permit incorporating your program into
+proprietary programs. If your program is a subroutine library, you may
+consider it more useful to permit linking proprietary applications with the
+library. If this is what you want to do, use the GNU Lesser General
+Public License instead of this License.
Added: gnunet-cocoa/GNUnet Setup/English.lproj/InfoPlist.strings
===================================================================
(Binary files differ)
Property changes on: gnunet-cocoa/GNUnet Setup/English.lproj/InfoPlist.strings
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: gnunet-cocoa/GNUnet Setup/English.lproj/MainMenu.nib/classes.nib
===================================================================
--- gnunet-cocoa/GNUnet Setup/English.lproj/MainMenu.nib/classes.nib
(rev 0)
+++ gnunet-cocoa/GNUnet Setup/English.lproj/MainMenu.nib/classes.nib
2009-04-08 14:51:31 UTC (rev 8398)
@@ -0,0 +1,21 @@
+{
+ IBClasses = (
+ {CLASS = FirstResponder; LANGUAGE = ObjC; SUPERCLASS = NSObject; },
+ {
+ ACTIONS = {
+ saveChangesAction = id;
+ selectedClientConfig = id;
+ selectedDaemonConfig = id;
+ };
+ CLASS = GNSetup;
+ LANGUAGE = ObjC;
+ OUTLETS = {
+ clientConfigMenuItem = NSMenuItem;
+ daemonConfigMenuItem = NSMenuItem;
+ window = NSWindow;
+ };
+ SUPERCLASS = NSObject;
+ }
+ );
+ IBVersion = 1;
+}
\ No newline at end of file
Added: gnunet-cocoa/GNUnet Setup/English.lproj/MainMenu.nib/info.nib
===================================================================
--- gnunet-cocoa/GNUnet Setup/English.lproj/MainMenu.nib/info.nib
(rev 0)
+++ gnunet-cocoa/GNUnet Setup/English.lproj/MainMenu.nib/info.nib
2009-04-08 14:51:31 UTC (rev 8398)
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>IBDocumentLocation</key>
+ <string>138 55 356 240 0 0 1680 1028 </string>
+ <key>IBEditorPositions</key>
+ <dict>
+ <key>29</key>
+ <string>169 506 395 44 0 0 1680 1028 </string>
+ </dict>
+ <key>IBFramework Version</key>
+ <string>489.0</string>
+ <key>IBOpenObjects</key>
+ <array>
+ <integer>21</integer>
+ <integer>29</integer>
+ </array>
+ <key>IBSystem Version</key>
+ <string>8S165</string>
+</dict>
+</plist>
Added: gnunet-cocoa/GNUnet Setup/English.lproj/MainMenu.nib/keyedobjects.nib
===================================================================
(Binary files differ)
Property changes on: gnunet-cocoa/GNUnet
Setup/English.lproj/MainMenu.nib/keyedobjects.nib
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: gnunet-cocoa/GNUnet Setup/GNSetup.h
===================================================================
--- gnunet-cocoa/GNUnet Setup/GNSetup.h (rev 0)
+++ gnunet-cocoa/GNUnet Setup/GNSetup.h 2009-04-08 14:51:31 UTC (rev 8398)
@@ -0,0 +1,79 @@
+/*
+ * GNUnet Setup (Cocoa UI)
+ * Copyright (C) 2009 Heikki Lindholm <address@hidden>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ */
+
+#import <Security/Security.h>
+#import <Cocoa/Cocoa.h>
+#import <GNUnet/GNUNETSetupView.h>
+
+typedef enum {
+ GNSetupUserActionNone = 0,
+ GNSetupUserActionDaemonConfig,
+ GNSetupUserActionClientConfig,
+ GNSetupUserActionQuit
+} GNSetupUserAction;
+
address@hidden GNSetup : NSObject {
+ struct GNUNET_GE_Context *errorContext;
+ struct GNUNET_GNS_Context *gnsContext;
+ struct GNUNET_GC_Configuration *config;
+ NSMutableArray *gnsOptionsArray;
+ char *configFilename;
+ char *defaultDaemonConfigFilename;
+ char *defaultClientConfigFilename;
+ BOOL isDaemonConfig;
+ BOOL shouldQuit;
+
+ AuthorizationRef authRef; // authorization for daemon config
+ BOOL isPreauthorized;
+ GNSetupUserAction actionBeforeAlert;
+
+ struct GNUNET_PluginHandle *cocoaSetupPlugin;
+ Class GNUNETSetupView_class;
+
+ IBOutlet NSWindow *window;
+ IBOutlet NSMenuItem *daemonConfigMenuItem;
+ IBOutlet NSMenuItem *clientConfigMenuItem;
+ NSString *windowTitle;
+ NSView *rootView;
+ GNUNETSetupView *setupView;
+}
+- (id)init;
+- (void)awakeFromNib;
+- (BOOL)isReadyToTerminate;
+- (BOOL)windowShouldClose:(id)window;
+- (void)windowWillClose:(NSNotification *)notification;
+
+- (BOOL)initSetupView;
+- (void)updateWindowFrame;
+- (NSString *)getFilenameFromOpenPanel;
+- (void)displayErrorLoadingAlertWithInfo:(NSString *)info;
+- (void)displaySaveAlert;
+- (void)displayErrorSavingAlert;
+- (void)saveAlertDidEnd:(NSAlert *)alert returnCode:(int)returnCode
+ contextInfo:(void *)contextInfo;
+- (void)errorAlertDidEnd:(NSAlert *)alert returnCode:(int)returnCode
+ contextInfo:(void *)contextInfo;
+- (void)continueInterruptedAction;
+
+- (BOOL)preauthorize;
+- (void)loadAndDisplayConfigOfType:(BOOL)isDaemon;
+
+- (IBAction)selectedDaemonConfig:(id)sender;
+- (IBAction)selectedClientConfig:(id)sender;
+- (IBAction)saveChangesAction:(id)sender;
+
+- (void)getDefaultsFrom:(struct GNUNET_GNS_TreeNode *)pos;
+- (void)buildOptionList:(NSMutableArray *)optionsArray
+ from:(struct GNUNET_GNS_TreeNode *)pos;
+- (int)loadConfigOfType:(BOOL)isDaemon fromFile:(const char *)filename;
+- (int)privilegedLoadConfig;
+- (int)saveConfig;
+- (int)privilegedSaveConfig;
address@hidden
Added: gnunet-cocoa/GNUnet Setup/GNSetup.m
===================================================================
--- gnunet-cocoa/GNUnet Setup/GNSetup.m (rev 0)
+++ gnunet-cocoa/GNUnet Setup/GNSetup.m 2009-04-08 14:51:31 UTC (rev 8398)
@@ -0,0 +1,763 @@
+/*
+ * GNUnet Setup (Cocoa UI)
+ * Copyright (C) 2009 Heikki Lindholm <address@hidden>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ */
+
+// launch advanced configurator:
+//NSTask *task = [NSTask ......];
+//> pid_t pid = [task processIdentifier];
+//> ProcessSerialNumber psn;
+//> if (noErr == GetProcessForPID(pid, &psn)) {
+//> SetFrontProcess(&psn);
+//> }
+
+#include <stdio.h>
+#include <string.h>
+#include <unistd.h>
+
+#include <Security/Authorization.h>
+#include <Security/AuthorizationTags.h>
+
+#include <GNUnet/gnunet_util.h>
+#include <GNUnet/gnunet_directories.h>
+
+#import "GNSetup.h"
+
+static char * input_string(FILE *f)
+{
+ char *buf;
+ int len;
+ int n;
+
+ n = fread(&len, sizeof(len), 1, f);
+ if (n < 1)
+ return NULL;
+
+ if (len <= 0)
+ return NULL;
+
+ buf = malloc(len);
+ n = fread(buf, 1, len, f);
+ if (n < len) {
+ free(buf);
+ return NULL;
+ }
+
+ return buf;
+}
+
+
+static void output_string(FILE *f, char *s)
+{
+ int len;
+
+ if (s == NULL) {
+ len = 0;
+ fwrite(&len, sizeof(len), 1, f);
+ return;
+ }
+
+ len = strlen(s)+1;
+ fwrite(&len, sizeof(len), 1, f);
+ fwrite(s, 1, len, f);
+}
+
address@hidden GNSetup
+- (id)init
+{
+ if (self = [super init]) {
+ errorContext = GNUNET_GE_create_context_stderr(GNUNET_NO,
+ GNUNET_GE_WARNING | GNUNET_GE_ERROR | GNUNET_GE_FATAL |
+ GNUNET_GE_USER | GNUNET_GE_ADMIN | GNUNET_GE_DEVELOPER |
+ GNUNET_GE_IMMEDIATE | GNUNET_GE_BULK);
+ GNUNET_GE_setDefaultContext(errorContext);
+ GNUNET_os_init(errorContext);
+
+ config = GNUNET_GC_create();
+ if (config == NULL) {
+ GNUNET_GE_free_context(errorContext);
+ [self release];
+ return nil;
+ }
+
+ gnsContext = NULL;
+ gnsOptionsArray = nil;
+
+ cocoaSetupPlugin = GNUNET_plugin_load(errorContext,
+ "libgnunet", "setup_cocoa");
+ if (!cocoaSetupPlugin) {
+ GNUNET_GE_free_context(errorContext);
+ GNUNET_GC_free(config);
+ [self release];
+ return nil;
+ }
+
+ GNUNETSetupView_class = objc_getClass("GNUNETSetupView");
+ if (!GNUNETSetupView_class) {
+ GNUNET_GE_free_context(errorContext);
+ GNUNET_GC_free(config);
+ GNUNET_plugin_unload(cocoaSetupPlugin);
+ [self release];
+ return nil;
+ }
+
+ windowTitle = nil;
+ setupView = nil;
+ actionBeforeAlert = GNSetupUserActionNone;
+ shouldQuit = NO;
+ configFilename = nil;
+ [NSApp setDelegate:self];
+ }
+
+ return self;
+}
+
+- (void)awakeFromNib
+{
+ NSString *s;
+
+ // handle command line args
+ isDaemonConfig = NO;
+ s = [[NSUserDefaults standardUserDefaults]
+ stringForKey:@"StartupConfigType"];
+ if (s != nil && [s caseInsensitiveCompare:@"Daemon"] == NSOrderedSame) {
+ isDaemonConfig = YES;
+ }
+
+ s = [[NSUserDefaults standardUserDefaults]
+ stringForKey:@"DefaultDaemonConfig"];
+ if (s != nil)
+ defaultDaemonConfigFilename = strdup([s UTF8String]);
+ else
+ defaultDaemonConfigFilename = NULL;
+
+ s = [[NSUserDefaults standardUserDefaults]
+ stringForKey:@"DefaultClientConfig"];
+ if (s != nil)
+ defaultClientConfigFilename = strdup([s UTF8String]);
+ else
+ defaultClientConfigFilename = NULL;
+
+ [self loadAndDisplayConfigOfType:isDaemonConfig];
+}
+
+- (int)loadConfigOfType:(BOOL)isDaemon fromFile:(const char *)filename
+{
+ char *dirname;
+ char *specname;
+ BOOL didParseConfig;
+
+ isPreauthorized = NO;
+
+ // authorize if needed
+ if (isDaemon && access(filename, F_OK | R_OK | W_OK) == -1) {
+ if ([self preauthorize] == NO) {
+ if (configFilename == nil)
+ actionBeforeAlert = GNSetupUserActionQuit;
+ else
+ actionBeforeAlert = GNSetupUserActionNone;
+ [self displayErrorLoadingAlertWithInfo:@"Authorization
failed."];
+ return -1;
+ }
+ isPreauthorized = YES;
+ }
+
+ if (setupView != nil) {
+ [setupView removeFromSuperviewWithoutNeedingDisplay];
+ setupView = nil;
+ }
+
+ if (gnsContext != NULL)
+ GNUNET_GNS_free_specification(gnsContext);
+
+ if (config != NULL)
+ GNUNET_GC_free(config);
+
+ config = GNUNET_GC_create();
+ if (config == NULL) {
+ if (configFilename == nil)
+ actionBeforeAlert = GNSetupUserActionQuit;
+ else
+ actionBeforeAlert = GNSetupUserActionNone;
+ [self displayErrorLoadingAlertWithInfo:@"Cannot create
configuration."];
+ return -1;
+ }
+
+ // load spec
+ dirname = GNUNET_get_installation_path(GNUNET_IPK_DATADIR);
+ specname = GNUNET_malloc(strlen (dirname) +
+ strlen ("config-daemon.scm") + 1);
+ strcpy (specname, dirname);
+ if (isDaemon)
+ strcat (specname, "config-daemon.scm");
+ else
+ strcat (specname, "config-client.scm");
+
+ gnsContext = GNUNET_GNS_load_specification(errorContext, config,
+ specname);
+ if (gnsContext == NULL) {
+ if (configFilename == nil)
+ actionBeforeAlert = GNSetupUserActionQuit;
+ else
+ actionBeforeAlert = GNSetupUserActionNone;
+ [self displayErrorLoadingAlertWithInfo:@"Cannot load
configuration specification."];
+ return -1;
+ }
+ GNUNET_free(specname);
+ GNUNET_free(dirname);
+
+ if (gnsOptionsArray != nil)
+ [gnsOptionsArray release];
+ gnsOptionsArray = [NSMutableArray new];
+ [self buildOptionList:gnsOptionsArray
+ from:GNUNET_GNS_get_tree_root(gnsContext)];
+
+ // load config
+ configFilename = GNUNET_expand_file_name(errorContext, filename);
+ isDaemonConfig = isDaemon;
+
+ windowTitle = [[NSString alloc] initWithCString:configFilename
+ encoding:NSUTF8StringEncoding];
+ didParseConfig = NO;
+ if (access(configFilename, F_OK | R_OK | W_OK) == 0) {
+ GNUNET_GC_parse_configuration (config, configFilename);
+ didParseConfig = YES;
+ }
+ else if (isDaemonConfig) {
+ int n;
+ n = [self privilegedLoadConfig];
+ if (n > 0 || access(configFilename, F_OK) == 0)
+ didParseConfig = YES;
+ }
+
+ if (didParseConfig == NO) {
+ NSString *s;
+ s = [windowTitle stringByAppendingString:@" (new)"];
+ [windowTitle release];
+ windowTitle = s;
+ }
+
+ [self getDefaultsFrom:GNUNET_GNS_get_tree_root(gnsContext)];
+
+ return 0;
+}
+
+- (BOOL)preauthorize
+{
+ AuthorizationFlags authFlags = kAuthorizationFlagDefaults;
+ OSStatus status;
+
+ status = AuthorizationCreate(NULL, kAuthorizationEmptyEnvironment,
+ authFlags, &authRef);
+ if (status != errAuthorizationSuccess)
+ return NO;
+
+ AuthorizationItem authItems = { kAuthorizationRightExecute, 0, NULL, 0};
+ AuthorizationRights authRights = {1, &authItems};
+
+ authFlags = kAuthorizationFlagDefaults |
+ kAuthorizationFlagInteractionAllowed |
+ kAuthorizationFlagPreAuthorize |
+ kAuthorizationFlagExtendRights;
+ status = AuthorizationCopyRights(authRef, &authRights, NULL,
+ authFlags, NULL);
+
+ if (status != errAuthorizationSuccess) {
+ AuthorizationFree(authRef, kAuthorizationFlagDefaults);
+ return NO;
+ }
+
+ return YES;
+}
+
+- (int)privilegedLoadConfig
+{
+ OSStatus status;
+ AuthorizationFlags authFlags = kAuthorizationFlagDefaults;
+ NSString *toolPath;
+ char **toolArgs;
+ FILE *ioPipe = NULL;
+ NSBundle *toolBundle;
+ int ret, i;
+
+ toolBundle = [NSBundle bundleWithIdentifier:@"org.gnunet.GNUnet"];
+ toolPath = [[toolBundle resourcePath]
+ stringByAppendingPathComponent:@"gnunet-macosx-tool"];
+ if (toolPath == nil)
+ return -1;
+
+ toolArgs = malloc((2 + [gnsOptionsArray count] + 1)*sizeof(char *));
/*readConfig + ... + filename + NULL */
+ if (toolArgs == NULL)
+ return -1;
+
+ NSEnumerator *e = [gnsOptionsArray objectEnumerator];
+ id o;
+ toolArgs[0] = "readConfig";
+ toolArgs[1] = configFilename;
+ i = 2;
+ while (o = [e nextObject]) {
+ toolArgs[i] = strdup([(NSString *)o UTF8String]);
+ if (toolArgs[i] == NULL) {
+ free(toolArgs);
+ return -1;
+ }
+ i++;
+ }
+ toolArgs[i] = NULL;
+
+ authFlags = kAuthorizationFlagDefaults;
+ status = AuthorizationExecuteWithPrivileges(authRef,
+ [toolPath UTF8String], authFlags, toolArgs, &ioPipe);
+ ret = -1;
+ if (status == errAuthorizationSuccess) {
+ ret = 0;
+ do {
+ char *section, *option, *value;
+ section = input_string(ioPipe);
+ option = input_string(ioPipe);
+ value = input_string(ioPipe);
+ if (section && option) {
+ ret++;
+ if (GNUNET_GC_set_configuration_value_string(
+ config, errorContext,
+ section, option, value) != 0)
+ NSLog(@"error setting (%s:%s) [%s]\n",
+ section, option, value);
+ }
+ if (section) free(section);
+ if (option) free(option);
+ if (value) free(value);
+ } while (!feof(ioPipe));
+ fclose(ioPipe);
+ }
+
+ for (i = 0; i < [gnsOptionsArray count]; i++)
+ free(toolArgs[2+i]);
+ free(toolArgs);
+
+ return ret;
+}
+
+- (int)saveConfig
+{
+ BOOL didSave;
+
+ didSave = NO;
+ if (isPreauthorized) {
+ if ([self privilegedSaveConfig] == 0)
+ didSave = YES;
+ }
+ else {
+ if (GNUNET_GC_write_configuration (config, configFilename) ==
0)
+ didSave = YES;
+ }
+
+ return didSave == YES ? 0 : 1;
+}
+
+- (int)privilegedSaveConfig
+{
+ OSStatus status;
+ AuthorizationFlags authFlags = kAuthorizationFlagDefaults;
+ NSString *toolPath;
+ char *toolArgs[] = { "writeConfig", configFilename, NULL };
+ FILE *ioPipe = NULL;
+ NSBundle *toolBundle;
+ int ret;
+
+ toolBundle = [NSBundle bundleWithIdentifier:@"org.gnunet.GNUnet"];
+ toolPath = [[toolBundle resourcePath]
+ stringByAppendingPathComponent:@"gnunet-macosx-tool"];
+ if (toolPath == nil)
+ return -1;
+
+ authFlags = kAuthorizationFlagDefaults;
+ status = AuthorizationExecuteWithPrivileges(authRef,
+ [toolPath UTF8String], authFlags, toolArgs, &ioPipe);
+ ret = -1;
+ if (status == errAuthorizationSuccess) {
+ NSEnumerator *e = [gnsOptionsArray objectEnumerator];
+ id o;
+
+ while (o = [e nextObject]) {
+ char *section, *option, *value;
+
+ section = strdup([(NSString *)o UTF8String]);
+ option = section;
+ while (*option != '\0' && *option != ':')
+ option++;
+ if (option == '\0') {
+ free(section);
+ continue;
+ }
+ option[0] = '\0';
+ option++;
+
+ ret = GNUNET_GC_get_configuration_value_string(config,
+ section, option, NULL, &value);
+ if (ret != GNUNET_SYSERR) {
+ output_string(ioPipe, section);
+ output_string(ioPipe, option);
+ output_string(ioPipe, value);
+ GNUNET_free(value);
+ }
+ free(section);
+ }
+ output_string(ioPipe, NULL);
+
+ do {
+ char *value;
+ value = input_string(ioPipe);
+ if (value != NULL && strcmp(value, "OK") == 0)
+ ret = 0;
+ } while (!feof(ioPipe));
+
+ fclose(ioPipe);
+ }
+
+ return ret;
+}
+
+- (BOOL)initSetupView
+{
+ if (setupView != nil) {
+ [setupView removeFromSuperviewWithoutNeedingDisplay];
+ }
+
+ setupView = [[GNUNETSetupView_class alloc]
+ initWithConfig:config
+ setupContext:gnsContext
+ errorContext:errorContext
+ maxWidth:768];
+
+ [[window contentView] addSubview:setupView];
+
+ [self updateWindowFrame];
+
+ [window setTitle:windowTitle];
+ [window center];
+
+ return YES;
+}
+
+- (void)updateWindowFrame
+{
+ NSSize size;
+ NSPoint origin;
+ NSRect frame;
+
+ size = [setupView frame].size;
+ size.width += 2*16.0;
+ size.height += 2*16.0;
+ [[window contentView] setFrameSize:size];
+
+ origin.x = 16.0;
+ origin.y = 16.0;
+ [setupView setFrameOrigin:origin];
+
+ frame = [window frame];
+ frame.size = [window
+ frameRectForContentRect:[[window contentView] frame]].size;
+ frame.origin.y -= ((frame.size.height) - [window frame].size.height);
+ [window setFrame:frame display:YES];
+}
+
+- (NSString *)getFilenameFromOpenPanel
+{
+ NSOpenPanel *openPanel;
+ NSArray *filetypes = [NSArray arrayWithObjects:@"conf", nil];
+ int result;
+
+ openPanel = [NSOpenPanel openPanel];
+ [openPanel setCanChooseFiles:YES];
+ [openPanel setCanChooseDirectories:NO];
+ [openPanel setAllowsMultipleSelection:NO];
+ result = [openPanel runModalForDirectory:nil file:nil types:filetypes];
+
+ if (result == NSOKButton)
+ return [openPanel filename];
+ else
+ return nil;
+}
+
+- (IBAction)selectedDaemonConfig:(id)sender
+{
+ if (isDaemonConfig == YES)
+ return;
+
+ if (GNUNET_GC_test_dirty(config)) {
+ actionBeforeAlert = GNSetupUserActionDaemonConfig;
+ [self displaySaveAlert];
+ return;
+ }
+
+ [self loadAndDisplayConfigOfType:YES];
+}
+
+- (IBAction)selectedClientConfig:(id)sender
+{
+ if (isDaemonConfig == NO)
+ return;
+
+ if (GNUNET_GC_test_dirty(config)) {
+ actionBeforeAlert = GNSetupUserActionClientConfig;
+ [self displaySaveAlert];
+ return;
+ }
+
+ [self loadAndDisplayConfigOfType:NO];
+}
+
+- (IBAction)saveChangesAction:(id)sender
+{
+ if ([self saveConfig] != 0)
+ [self displayErrorSavingAlert];
+}
+
+- (void)loadAndDisplayConfigOfType:(BOOL)isDaemon
+{
+ int ret;
+
+ ret = [self loadConfigOfType:isDaemon fromFile:(isDaemon ?
+ (defaultDaemonConfigFilename != NULL ?
+ defaultDaemonConfigFilename :
+ GNUNET_DEFAULT_DAEMON_CONFIG_FILE) :
+ (defaultClientConfigFilename != NULL ?
+ defaultClientConfigFilename :
+ GNUNET_DEFAULT_CLIENT_CONFIG_FILE))];
+
+ if (ret != 0)
+ return;
+
+ [daemonConfigMenuItem setState:isDaemonConfig ? NSOnState : NSOffState];
+ [clientConfigMenuItem setState:isDaemonConfig ? NSOffState :
NSOnState];
+ [self initSetupView];
+}
+
+- (void)getDefaultsFrom:(struct GNUNET_GNS_TreeNode *)pos
+{
+ struct GNUNET_GNS_TreeNode *child;
+ char *val;
+ int i;
+
+ if (pos == NULL)
+ return;
+
+ i = 0;
+ while ((child = pos->children[i]) != NULL) {
+ switch (child->type & GNUNET_GNS_KIND_MASK) {
+ case GNUNET_GNS_KIND_NODE:
+ [self getDefaultsFrom:child];
+ break;
+ case GNUNET_GNS_KIND_LEAF:
+ if ((child->section == NULL) ||
+ (child->option == NULL))
+ break;
+ if (GNUNET_NO ==
+ GNUNET_GC_have_configuration_value
+ (config, child->section, child->option))
+ {
+ val =
GNUNET_GNS_get_default_value_as_string(child->type, &child->value);
+ if (val != NULL) {
+
GNUNET_GC_set_configuration_value_string (config, errorContext, child->section,
child->option, val);
+ GNUNET_free (val);
+ }
+ }
+ break;
+ default:
+ NSLog(@"unknown GNS tree node\n");
+ break;
+ }
+ i++;
+ }
+}
+
+- (void)buildOptionList:(NSMutableArray *)optionsArray
+ from:(struct GNUNET_GNS_TreeNode *)pos
+{
+ struct GNUNET_GNS_TreeNode *child;
+ char *s;
+ int i;
+
+ if (pos == NULL)
+ return;
+
+ i = 0;
+ while ((child = pos->children[i]) != NULL) {
+ switch (child->type & GNUNET_GNS_KIND_MASK) {
+ case GNUNET_GNS_KIND_NODE:
+ [self buildOptionList:optionsArray from:child];
+ break;
+ case GNUNET_GNS_KIND_LEAF:
+ if ((child->section == NULL) ||
+ (child->option == NULL))
+ break;
+ s = GNUNET_malloc(strlen(child->section) + 1 +
+ strlen(child->option)+1);
+ strcpy(s, child->section);
+ strcat(s, ":");
+ strcat(s, child->option);
+ [optionsArray addObject:[[NSString alloc]
+ initWithUTF8String:s]];
+ GNUNET_free(s);
+ break;
+ default:
+ NSLog(@"unknown GNS tree node\n");
+ break;
+ }
+ i++;
+ }
+}
+
+- (void)displayErrorLoadingAlertWithInfo:(NSString *)info
+{
+ NSAlert *alert = [[[NSAlert alloc] init] autorelease];
+ [alert setMessageText:@"Error loading configuration!"];
+ if (info != nil)
+ [alert setInformativeText:info];
+ [alert addButtonWithTitle:@"OK"];
+ [alert setAlertStyle:NSWarningAlertStyle];
+ [alert beginSheetModalForWindow:window
+ modalDelegate:self
+ didEndSelector:@selector(errorAlertDidEnd:
+ returnCode:
+ contextInfo:)
+ contextInfo:nil];
+}
+
+- (void)displaySaveAlert
+{
+ NSAlert *alert = [[[NSAlert alloc] init] autorelease];
+ [alert setMessageText:@"Configuration changed. Save?"];
+ [alert addButtonWithTitle:@"Yes"];
+ [alert addButtonWithTitle:@"Cancel"];
+ [alert addButtonWithTitle:@"No"];
+ [alert setAlertStyle:NSWarningAlertStyle];
+ [alert beginSheetModalForWindow:window
+ modalDelegate:self
+ didEndSelector:@selector(saveAlertDidEnd:
+ returnCode:
+ contextInfo:)
+ contextInfo:nil];
+}
+
+- (void)displayErrorSavingAlert
+{
+ NSAlert *alert = [[[NSAlert alloc] init] autorelease];
+ [alert setMessageText:@"Error saving configuration!"];
+ [alert addButtonWithTitle:@"OK"];
+ [alert setAlertStyle:NSCriticalAlertStyle];
+ [alert beginSheetModalForWindow:window
+ modalDelegate:self
+ didEndSelector:@selector(errorAlertDidEnd:
+ returnCode:
+ contextInfo:)
+ contextInfo:nil];
+}
+
+- (void)saveAlertDidEnd:(NSAlert *)alert returnCode:(int)returnCode
+ contextInfo:(void *)contextInfo
+{
+ [[alert window] orderOut:self];
+ if (returnCode == NSAlertFirstButtonReturn) { // Yes
+ if ([self saveConfig] == 0)
+ [self continueInterruptedAction];
+ else {
+ actionBeforeAlert = GNSetupUserActionNone;
+ [self displayErrorSavingAlert];
+ }
+ }
+ else if (returnCode == NSAlertThirdButtonReturn) { // No
+ [self continueInterruptedAction];
+ }
+ else // Cancel
+ actionBeforeAlert = GNSetupUserActionNone;
+}
+
+- (void)errorAlertDidEnd:(NSAlert *)alert returnCode:(int)returnCode
+ contextInfo:(void *)contextInfo
+{
+ [self continueInterruptedAction];
+}
+
+- (void)continueInterruptedAction
+{
+ GNSetupUserAction action;
+ action = actionBeforeAlert;
+ actionBeforeAlert = GNSetupUserActionNone;
+ switch (action) {
+ case GNSetupUserActionDaemonConfig:
+ [self loadAndDisplayConfigOfType:YES];
+ break;
+ case GNSetupUserActionClientConfig:
+ [self loadAndDisplayConfigOfType:NO];
+ break;
+ case GNSetupUserActionQuit:
+ shouldQuit = YES;
+ [NSApp terminate:self];
+ break;
+ case GNSetupUserActionNone:
+ break;
+ default:
+ NSLog(@"tried to continue unknown user action\n");
+ break;
+ }
+}
+
+- (BOOL)isReadyToTerminate
+{
+ if ([window firstResponder] != nil &&
+ [window makeFirstResponder:nil] == NO)
+ return NO;
+
+ if (GNUNET_GC_test_dirty(config) && shouldQuit == NO) {
+ actionBeforeAlert = GNSetupUserActionQuit;
+ [self displaySaveAlert];
+ return NO;
+ }
+
+ return YES;
+}
+
+- (BOOL)windowShouldClose:(id)sender
+{
+ if ([self isReadyToTerminate] == NO)
+ return NO;
+
+ if (setupView != nil) {
+ [setupView removeFromSuperviewWithoutNeedingDisplay];
+ }
+ return YES;
+}
+
+- (void)windowWillClose:(NSNotification *)notification
+{
+ [NSApp terminate:self];
+}
+
+- (NSApplicationTerminateReply)
+ applicationShouldTerminate:(NSApplication *)sender
+{
+ return [self isReadyToTerminate];
+}
+
+- (void)applicationWillTerminate:(NSNotification *)notification
+{
+ if (defaultDaemonConfigFilename)
+ free(defaultDaemonConfigFilename);
+ if (defaultClientConfigFilename)
+ free(defaultClientConfigFilename);
+ GNUNET_plugin_unload(cocoaSetupPlugin);
+ if (gnsOptionsArray != nil)
+ [gnsOptionsArray release];
+ if (gnsContext)
+ GNUNET_GNS_free_specification(gnsContext);
+ GNUNET_GC_free(config);
+ GNUNET_GE_free_context(errorContext);
+}
address@hidden
Added: gnunet-cocoa/GNUnet Setup/GNUnet Setup.xcodeproj/project.pbxproj
===================================================================
--- gnunet-cocoa/GNUnet Setup/GNUnet Setup.xcodeproj/project.pbxproj
(rev 0)
+++ gnunet-cocoa/GNUnet Setup/GNUnet Setup.xcodeproj/project.pbxproj
2009-04-08 14:51:31 UTC (rev 8398)
@@ -0,0 +1,285 @@
+// !$*UTF8*$!
+{
+ archiveVersion = 1;
+ classes = {
+ };
+ objectVersion = 42;
+ objects = {
+
+/* Begin PBXBuildFile section */
+ 8932C1E00F701EF800115139 /* GNUnetSetup-icon.icns in Resources
*/ = {isa = PBXBuildFile; fileRef = 8932C1DF0F701EF800115139 /*
GNUnetSetup-icon.icns */; };
+ 89345C8B0F62709400BE0838 /* Security.framework in Frameworks */
= {isa = PBXBuildFile; fileRef = 89345C8A0F62709400BE0838 /* Security.framework
*/; };
+ 899859F80F5192CA00ED2EEF /* GNUnet.framework in Frameworks */ =
{isa = PBXBuildFile; fileRef = 899859F70F5192CA00ED2EEF /* GNUnet.framework */;
};
+ 899859FF0F5192E700ED2EEF /* GNSetup.m in Sources */ = {isa =
PBXBuildFile; fileRef = 899859FE0F5192E700ED2EEF /* GNSetup.m */; };
+ 8D11072A0486CEB800E47090 /* MainMenu.nib in Resources */ = {isa
= PBXBuildFile; fileRef = 29B97318FDCFA39411CA2CEA /* MainMenu.nib */; };
+ 8D11072B0486CEB800E47090 /* InfoPlist.strings in Resources */ =
{isa = PBXBuildFile; fileRef = 089C165CFE840E0CC02AAC07 /* InfoPlist.strings
*/; };
+ 8D11072D0486CEB800E47090 /* main.m in Sources */ = {isa =
PBXBuildFile; fileRef = 29B97316FDCFA39411CA2CEA /* main.m */; settings =
{ATTRIBUTES = (); }; };
+ 8D11072F0486CEB800E47090 /* Cocoa.framework in Frameworks */ =
{isa = PBXBuildFile; fileRef = 1058C7A1FEA54F0111CA2CBB /* Cocoa.framework */;
};
+/* End PBXBuildFile section */
+
+/* Begin PBXFileReference section */
+ 089C165DFE840E0CC02AAC07 /* English */ = {isa =
PBXFileReference; fileEncoding = 10; lastKnownFileType = text.plist.strings;
name = English; path = English.lproj/InfoPlist.strings; sourceTree = "<group>";
};
+ 1058C7A1FEA54F0111CA2CBB /* Cocoa.framework */ = {isa =
PBXFileReference; lastKnownFileType = wrapper.framework; name =
Cocoa.framework; path = /System/Library/Frameworks/Cocoa.framework; sourceTree
= "<absolute>"; };
+ 13E42FB307B3F0F600E4EEF1 /* CoreData.framework */ = {isa =
PBXFileReference; lastKnownFileType = wrapper.framework; name =
CoreData.framework; path = /System/Library/Frameworks/CoreData.framework;
sourceTree = "<absolute>"; };
+ 29B97316FDCFA39411CA2CEA /* main.m */ = {isa =
PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path
= main.m; sourceTree = "<group>"; };
+ 29B97319FDCFA39411CA2CEA /* English */ = {isa =
PBXFileReference; lastKnownFileType = wrapper.nib; name = English; path =
English.lproj/MainMenu.nib; sourceTree = "<group>"; };
+ 29B97324FDCFA39411CA2CEA /* AppKit.framework */ = {isa =
PBXFileReference; lastKnownFileType = wrapper.framework; name =
AppKit.framework; path = /System/Library/Frameworks/AppKit.framework;
sourceTree = "<absolute>"; };
+ 29B97325FDCFA39411CA2CEA /* Foundation.framework */ = {isa =
PBXFileReference; lastKnownFileType = wrapper.framework; name =
Foundation.framework; path = /System/Library/Frameworks/Foundation.framework;
sourceTree = "<absolute>"; };
+ 8932C1DF0F701EF800115139 /* GNUnetSetup-icon.icns */ = {isa =
PBXFileReference; lastKnownFileType = image.icns; path =
"GNUnetSetup-icon.icns"; sourceTree = "<group>"; };
+ 89345C8A0F62709400BE0838 /* Security.framework */ = {isa =
PBXFileReference; lastKnownFileType = wrapper.framework; name =
Security.framework; path = /System/Library/Frameworks/Security.framework;
sourceTree = "<absolute>"; };
+ 899859F70F5192CA00ED2EEF /* GNUnet.framework */ = {isa =
PBXFileReference; lastKnownFileType = wrapper.framework; name =
GNUnet.framework; path = /Library/Frameworks/GNUnet.framework; sourceTree =
"<absolute>"; };
+ 899859FD0F5192E700ED2EEF /* GNSetup.h */ = {isa =
PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path =
GNSetup.h; sourceTree = "<group>"; };
+ 899859FE0F5192E700ED2EEF /* GNSetup.m */ = {isa =
PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path
= GNSetup.m; sourceTree = "<group>"; };
+ 8D1107310486CEB800E47090 /* Info.plist */ = {isa =
PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist; path =
Info.plist; sourceTree = "<group>"; };
+ 8D1107320486CEB800E47090 /* GNUnet Setup.app */ = {isa =
PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0;
path = "GNUnet Setup.app"; sourceTree = BUILT_PRODUCTS_DIR; };
+/* End PBXFileReference section */
+
+/* Begin PBXFrameworksBuildPhase section */
+ 8D11072E0486CEB800E47090 /* Frameworks */ = {
+ isa = PBXFrameworksBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 8D11072F0486CEB800E47090 /* Cocoa.framework in
Frameworks */,
+ 899859F80F5192CA00ED2EEF /* GNUnet.framework in
Frameworks */,
+ 89345C8B0F62709400BE0838 /* Security.framework
in Frameworks */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXFrameworksBuildPhase section */
+
+/* Begin PBXGroup section */
+ 080E96DDFE201D6D7F000001 /* Classes */ = {
+ isa = PBXGroup;
+ children = (
+ 899859FD0F5192E700ED2EEF /* GNSetup.h */,
+ 899859FE0F5192E700ED2EEF /* GNSetup.m */,
+ );
+ name = Classes;
+ sourceTree = "<group>";
+ };
+ 1058C7A0FEA54F0111CA2CBB /* Linked Frameworks */ = {
+ isa = PBXGroup;
+ children = (
+ 89345C8A0F62709400BE0838 /* Security.framework
*/,
+ 899859F70F5192CA00ED2EEF /* GNUnet.framework */,
+ 1058C7A1FEA54F0111CA2CBB /* Cocoa.framework */,
+ );
+ name = "Linked Frameworks";
+ sourceTree = "<group>";
+ };
+ 1058C7A2FEA54F0111CA2CBB /* Other Frameworks */ = {
+ isa = PBXGroup;
+ children = (
+ 29B97324FDCFA39411CA2CEA /* AppKit.framework */,
+ 13E42FB307B3F0F600E4EEF1 /* CoreData.framework
*/,
+ 29B97325FDCFA39411CA2CEA /*
Foundation.framework */,
+ );
+ name = "Other Frameworks";
+ sourceTree = "<group>";
+ };
+ 19C28FACFE9D520D11CA2CBB /* Products */ = {
+ isa = PBXGroup;
+ children = (
+ 8D1107320486CEB800E47090 /* GNUnet Setup.app */,
+ );
+ name = Products;
+ sourceTree = "<group>";
+ };
+ 29B97314FDCFA39411CA2CEA /* GNUnet Setup */ = {
+ isa = PBXGroup;
+ children = (
+ 080E96DDFE201D6D7F000001 /* Classes */,
+ 29B97315FDCFA39411CA2CEA /* Other Sources */,
+ 29B97317FDCFA39411CA2CEA /* Resources */,
+ 29B97323FDCFA39411CA2CEA /* Frameworks */,
+ 19C28FACFE9D520D11CA2CBB /* Products */,
+ );
+ name = "GNUnet Setup";
+ sourceTree = "<group>";
+ };
+ 29B97315FDCFA39411CA2CEA /* Other Sources */ = {
+ isa = PBXGroup;
+ children = (
+ 29B97316FDCFA39411CA2CEA /* main.m */,
+ );
+ name = "Other Sources";
+ sourceTree = "<group>";
+ };
+ 29B97317FDCFA39411CA2CEA /* Resources */ = {
+ isa = PBXGroup;
+ children = (
+ 8932C1DF0F701EF800115139 /*
GNUnetSetup-icon.icns */,
+ 8D1107310486CEB800E47090 /* Info.plist */,
+ 089C165CFE840E0CC02AAC07 /* InfoPlist.strings
*/,
+ 29B97318FDCFA39411CA2CEA /* MainMenu.nib */,
+ );
+ name = Resources;
+ sourceTree = "<group>";
+ };
+ 29B97323FDCFA39411CA2CEA /* Frameworks */ = {
+ isa = PBXGroup;
+ children = (
+ 1058C7A0FEA54F0111CA2CBB /* Linked Frameworks
*/,
+ 1058C7A2FEA54F0111CA2CBB /* Other Frameworks */,
+ );
+ name = Frameworks;
+ sourceTree = "<group>";
+ };
+/* End PBXGroup section */
+
+/* Begin PBXNativeTarget section */
+ 8D1107260486CEB800E47090 /* GNUnet Setup */ = {
+ isa = PBXNativeTarget;
+ buildConfigurationList = C01FCF4A08A954540054247B /*
Build configuration list for PBXNativeTarget "GNUnet Setup" */;
+ buildPhases = (
+ 8D1107290486CEB800E47090 /* Resources */,
+ 8D11072C0486CEB800E47090 /* Sources */,
+ 8D11072E0486CEB800E47090 /* Frameworks */,
+ );
+ buildRules = (
+ );
+ dependencies = (
+ );
+ name = "GNUnet Setup";
+ productInstallPath = "$(HOME)/Applications";
+ productName = "GNUnet Setup";
+ productReference = 8D1107320486CEB800E47090 /* GNUnet
Setup.app */;
+ productType = "com.apple.product-type.application";
+ };
+/* End PBXNativeTarget section */
+
+/* Begin PBXProject section */
+ 29B97313FDCFA39411CA2CEA /* Project object */ = {
+ isa = PBXProject;
+ buildConfigurationList = C01FCF4E08A954540054247B /*
Build configuration list for PBXProject "GNUnet Setup" */;
+ hasScannedForEncodings = 1;
+ mainGroup = 29B97314FDCFA39411CA2CEA /* GNUnet Setup */;
+ projectDirPath = "";
+ targets = (
+ 8D1107260486CEB800E47090 /* GNUnet Setup */,
+ );
+ };
+/* End PBXProject section */
+
+/* Begin PBXResourcesBuildPhase section */
+ 8D1107290486CEB800E47090 /* Resources */ = {
+ isa = PBXResourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 8D11072A0486CEB800E47090 /* MainMenu.nib in
Resources */,
+ 8D11072B0486CEB800E47090 /* InfoPlist.strings
in Resources */,
+ 8932C1E00F701EF800115139 /*
GNUnetSetup-icon.icns in Resources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXResourcesBuildPhase section */
+
+/* Begin PBXSourcesBuildPhase section */
+ 8D11072C0486CEB800E47090 /* Sources */ = {
+ isa = PBXSourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 8D11072D0486CEB800E47090 /* main.m in Sources
*/,
+ 899859FF0F5192E700ED2EEF /* GNSetup.m in
Sources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXSourcesBuildPhase section */
+
+/* Begin PBXVariantGroup section */
+ 089C165CFE840E0CC02AAC07 /* InfoPlist.strings */ = {
+ isa = PBXVariantGroup;
+ children = (
+ 089C165DFE840E0CC02AAC07 /* English */,
+ );
+ name = InfoPlist.strings;
+ sourceTree = "<group>";
+ };
+ 29B97318FDCFA39411CA2CEA /* MainMenu.nib */ = {
+ isa = PBXVariantGroup;
+ children = (
+ 29B97319FDCFA39411CA2CEA /* English */,
+ );
+ name = MainMenu.nib;
+ sourceTree = "<group>";
+ };
+/* End PBXVariantGroup section */
+
+/* Begin XCBuildConfiguration section */
+ C01FCF4B08A954540054247B /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ COPY_PHASE_STRIP = NO;
+ GCC_DYNAMIC_NO_PIC = NO;
+ GCC_ENABLE_FIX_AND_CONTINUE = YES;
+ GCC_MODEL_TUNING = G5;
+ GCC_OPTIMIZATION_LEVEL = 0;
+ INFOPLIST_FILE = Info.plist;
+ INSTALL_PATH = "$(HOME)/Applications";
+ PRODUCT_NAME = "GNUnet Setup";
+ WRAPPER_EXTENSION = app;
+ ZERO_LINK = YES;
+ };
+ name = Debug;
+ };
+ C01FCF4C08A954540054247B /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ARCHS = (
+ ppc,
+ i386,
+ );
+ GCC_GENERATE_DEBUGGING_SYMBOLS = NO;
+ GCC_MODEL_TUNING = G5;
+ INFOPLIST_FILE = Info.plist;
+ INSTALL_PATH = "$(HOME)/Applications";
+ PRODUCT_NAME = "GNUnet Setup";
+ WRAPPER_EXTENSION = app;
+ };
+ name = Release;
+ };
+ C01FCF4F08A954540054247B /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ GCC_WARN_ABOUT_RETURN_TYPE = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ PREBINDING = NO;
+ SDKROOT = /Developer/SDKs/MacOSX10.4u.sdk;
+ };
+ name = Debug;
+ };
+ C01FCF5008A954540054247B /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ GCC_WARN_ABOUT_RETURN_TYPE = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ PREBINDING = NO;
+ SDKROOT = /Developer/SDKs/MacOSX10.4u.sdk;
+ };
+ name = Release;
+ };
+/* End XCBuildConfiguration section */
+
+/* Begin XCConfigurationList section */
+ C01FCF4A08A954540054247B /* Build configuration list for
PBXNativeTarget "GNUnet Setup" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ C01FCF4B08A954540054247B /* Debug */,
+ C01FCF4C08A954540054247B /* Release */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+ C01FCF4E08A954540054247B /* Build configuration list for
PBXProject "GNUnet Setup" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ C01FCF4F08A954540054247B /* Debug */,
+ C01FCF5008A954540054247B /* Release */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+/* End XCConfigurationList section */
+ };
+ rootObject = 29B97313FDCFA39411CA2CEA /* Project object */;
+}
Added: gnunet-cocoa/GNUnet Setup/GNUnetSetup-icon.icns
===================================================================
(Binary files differ)
Property changes on: gnunet-cocoa/GNUnet Setup/GNUnetSetup-icon.icns
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: gnunet-cocoa/GNUnet Setup/Info.plist
===================================================================
--- gnunet-cocoa/GNUnet Setup/Info.plist (rev 0)
+++ gnunet-cocoa/GNUnet Setup/Info.plist 2009-04-08 14:51:31 UTC (rev
8398)
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>CFBundleDevelopmentRegion</key>
+ <string>English</string>
+ <key>CFBundleExecutable</key>
+ <string>${EXECUTABLE_NAME}</string>
+ <key>CFBundleIconFile</key>
+ <string>GNUnetSetup-icon</string>
+ <key>CFBundleIdentifier</key>
+ <string>org.gnunet.GNUnetSetup</string>
+ <key>CFBundleInfoDictionaryVersion</key>
+ <string>6.0</string>
+ <key>CFBundleName</key>
+ <string>${PRODUCT_NAME}</string>
+ <key>CFBundlePackageType</key>
+ <string>APPL</string>
+ <key>CFBundleSignature</key>
+ <string>????</string>
+ <key>CFBundleShortVersionString</key>
+ <string>0.8.0c</string>
+ <key>CFBundleVersion</key>
+ <string>1</string>
+ <key>NSMainNibFile</key>
+ <string>MainMenu</string>
+ <key>NSPrincipalClass</key>
+ <string>NSApplication</string>
+</dict>
+</plist>
Added: gnunet-cocoa/GNUnet Setup/Package/Description.plist
===================================================================
--- gnunet-cocoa/GNUnet Setup/Package/Description.plist
(rev 0)
+++ gnunet-cocoa/GNUnet Setup/Package/Description.plist 2009-04-08 14:51:31 UTC
(rev 8398)
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>IFPkgDescriptionDescription</key>
+ <string>GNUnet Setup is a graphical setup application for
GNUnet.</string>
+ <key>IFPkgDescriptionTitle</key>
+ <string>GNUnet Setup</string>
+</dict>
+</plist>
Added: gnunet-cocoa/GNUnet Setup/Package/IFRequirement.strings
===================================================================
(Binary files differ)
Property changes on: gnunet-cocoa/GNUnet Setup/Package/IFRequirement.strings
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: gnunet-cocoa/GNUnet Setup/Package/Info.plist
===================================================================
--- gnunet-cocoa/GNUnet Setup/Package/Info.plist
(rev 0)
+++ gnunet-cocoa/GNUnet Setup/Package/Info.plist 2009-04-08 14:51:31 UTC
(rev 8398)
@@ -0,0 +1,75 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>CFBundleGetInfoString</key>
+ <string>GNUnet Setup 0.1, Copyright 2009 Heikki Lindholm</string>
+ <key>CFBundleIdentifier</key>
+ <string>org.gnunet.GNUnetSetup.pkg</string>
+ <key>CFBundleShortVersionString</key>
+ <string>0.1</string>
+ <key>IFPkgFlagAllowBackRev</key>
+ <false/>
+ <key>IFPkgFlagAuthorizationAction</key>
+ <string>RootAuthorization</string>
+ <key>IFPkgFlagBackgroundAlignment</key>
+ <string>topleft</string>
+ <key>IFPkgFlagBackgroundScaling</key>
+ <string>none</string>
+ <key>IFPkgFlagDefaultLocation</key>
+ <string>/Applications</string>
+ <key>IFPkgFlagFollowLinks</key>
+ <true/>
+ <key>IFPkgFlagInstalledSize</key>
+ <integer>0</integer>
+ <key>IFPkgFlagIsRequired</key>
+ <false/>
+ <key>IFPkgFlagOverwritePermissions</key>
+ <true/>
+ <key>IFPkgFlagRelocatable</key>
+ <false/>
+ <key>IFPkgFlagRestartAction</key>
+ <string>NoRestart</string>
+ <key>IFPkgFlagRootVolumeOnly</key>
+ <true/>
+ <key>IFPkgFlagUpdateInstalledLanguages</key>
+ <false/>
+ <key>IFPkgFormatVersion</key>
+ <real>0.10000000149011612</real>
+ <key>IFRequirementDicts</key>
+ <array>
+ <dict>
+ <key>Level</key>
+ <string>requires</string>
+ <key>TitleKey</key>
+ <string>MissingRequirementTitle</string>
+ <key>MessageKey</key>
+ <string>MissingExtractorMessage</string>
+ <key>SpecArgument</key>
+ <string>/Library/Frameworks/Extractor.framework</string>
+ <key>SpecType</key>
+ <string>file</string>
+ <key>TestObject</key>
+ <true/>
+ <key>TestOperator</key>
+ <string>eq</string>
+ </dict>
+ <dict>
+ <key>Level</key>
+ <string>requires</string>
+ <key>TitleKey</key>
+ <string>MissingRequirementTitle</string>
+ <key>MessageKey</key>
+ <string>MissingGNUnetMessage</string>
+ <key>SpecArgument</key>
+ <string>/Library/Frameworks/GNUnet.framework</string>
+ <key>SpecType</key>
+ <string>file</string>
+ <key>TestObject</key>
+ <true/>
+ <key>TestOperator</key>
+ <string>eq</string>
+ </dict>
+ </array>
+</dict>
+</plist>
Added: gnunet-cocoa/GNUnet Setup/build-package.sh
===================================================================
--- gnunet-cocoa/GNUnet Setup/build-package.sh (rev 0)
+++ gnunet-cocoa/GNUnet Setup/build-package.sh 2009-04-08 14:51:31 UTC (rev
8398)
@@ -0,0 +1,36 @@
+SRC_BUILD_DIR="./build/Release"
+BUILD_DIR="/tmp/GNUnetSetup-build"
+RESOURCE_DIR="${BUILD_DIR}/Resources"
+COMPONENT_DIR="${BUILD_DIR}/Release"
+PACKAGE_DIR="${BUILD_DIR}/Package"
+PACKAGE_NAME="${PACKAGE_DIR}/GNUnetSetup.pkg"
+
+PACKAGEMAKER="/Developer/Applications/Utilities/PackageMaker.app/Contents/MacOS/PackageMaker"
+
+# copy orig build to temporary build dir, so that we can chown/chgrp
+if [ -e "${COMPONENT_DIR}" ] ; then
+ rm -rf "${COMPONENT_DIR}"
+fi
+mkdir -p "${COMPONENT_DIR}"/GNUnet
+cp -pPR "${SRC_BUILD_DIR}"/*.app "${COMPONENT_DIR}"/GNUnet
+
+# copy package/installer resources
+if [ -e "${RESOURCE_DIR}" ] ; then
+ rm -rf "${RESOURCE_DIR}"
+fi
+mkdir -p "${RESOURCE_DIR}"
+cp COPYING "${RESOURCE_DIR}/License.txt"
+cp Package/IFRequirement.strings "${RESOURCE_DIR}/IFRequirement.strings"
+
+# final permissions
+chown -R root "${COMPONENT_DIR}"/*
+chgrp -R admin "${COMPONENT_DIR}"/*
+
+# create package
+if [ -e "${PACKAGE_DIR}" ] ; then
+ rm -rf "${PACKAGE_DIR}"
+fi
+mkdir -p "${PACKAGE_DIR}"
+
+$PACKAGEMAKER -build -v -p "${PACKAGE_NAME}" -f "${COMPONENT_DIR}" -r
"${RESOURCE_DIR}" -i Package/Info.plist -d Package/Description.plist
+
Property changes on: gnunet-cocoa/GNUnet Setup/build-package.sh
___________________________________________________________________
Added: svn:executable
+ *
Added: gnunet-cocoa/GNUnet Setup/main.m
===================================================================
--- gnunet-cocoa/GNUnet Setup/main.m (rev 0)
+++ gnunet-cocoa/GNUnet Setup/main.m 2009-04-08 14:51:31 UTC (rev 8398)
@@ -0,0 +1,16 @@
+/*
+ * GNUnet Setup (Cocoa UI)
+ * Copyright (C) 2009 Heikki Lindholm <address@hidden>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ */
+
+#import <Cocoa/Cocoa.h>
+
+int main(int argc, char *argv[])
+{
+ return NSApplicationMain(argc, (const char **) argv);
+}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r8398 - in gnunet-cocoa: . GNUnet Setup GNUnet Setup/English.lproj GNUnet Setup/English.lproj/MainMenu.nib GNUnet Setup/GNUnet Setup.xcodeproj GNUnet Setup/Package,
gnunet <=