src/macosx/AAGrowlBridge.mm

Go to the documentation of this file.
00001 /*
00002  
00003  *************************************************************************
00004  
00005  ArmageTron -- Just another Tron Lightcycle Game in 3D.
00006  Copyright (C) 2005  by 
00007  and the AA DevTeam (see the file AUTHORS(.txt) in the main source directory)
00008  
00009  **************************************************************************
00010  
00011  This program is free software; you can redistribute it and/or
00012  modify it under the terms of the GNU General Public License
00013  as published by the Free Software Foundation; either version 2
00014  of the License, or (at your option) any later version.
00015  
00016  This program is distributed in the hope that it will be useful,
00017  but WITHOUT ANY WARRANTY; without even the implied warranty of
00018  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00019  GNU General Public License for more details.
00020  
00021  You should have received a copy of the GNU General Public License
00022  along with this program; if not, write to the Free Software
00023  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
00024  
00025  ***************************************************************************
00026  
00027  */
00028 
00029 #include "AAGrowlBridge.h"
00030 #include "AAGrowlPlugin.h"
00031 #include "tString.h"
00032 
00033 void Growl(tString title, tString message)
00034 {
00035     NSString *nstitle, *nsmessage;
00036     nstitle = [[NSString alloc] initWithCString:title.c_str()];
00037     nsmessage = [[NSString alloc] initWithCString:message.c_str()];
00038     [AAGrowlPlugin growl:nstitle message:nsmessage];
00039     [nstitle release];
00040     [nsmessage release];
00041 }
00042 

Generated on Sat Mar 15 22:55:48 2008 for Armagetron Advanced by  doxygen 1.5.4