~armagetronad-ct/armagetronad/0.4-advrim

« back to all changes in this revision

Viewing changes to src/macosx/AAGrowlBridge.mm

  • Committer: Voodoo
  • Date: 2013-04-11 10:46:24 UTC
  • Revision ID: voodoo-20130411104624-zse1f33o7ten188z
merge -r 1454..1476 lp:armagetronad/0.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 
3
 
 *************************************************************************
4
 
 
5
 
 ArmageTron -- Just another Tron Lightcycle Game in 3D.
6
 
 Copyright (C) 2005  by 
7
 
 and the AA DevTeam (see the file AUTHORS(.txt) in the main source directory)
8
 
 
9
 
 **************************************************************************
10
 
 
11
 
 This program is free software; you can redistribute it and/or
12
 
 modify it under the terms of the GNU General Public License
13
 
 as published by the Free Software Foundation; either version 2
14
 
 of the License, or (at your option) any later version.
15
 
 
16
 
 This program is distributed in the hope that it will be useful,
17
 
 but WITHOUT ANY WARRANTY; without even the implied warranty of
18
 
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19
 
 GNU General Public License for more details.
20
 
 
21
 
 You should have received a copy of the GNU General Public License
22
 
 along with this program; if not, write to the Free Software
23
 
 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
24
 
 
25
 
 ***************************************************************************
26
 
 
27
 
 */
28
 
 
29
 
#include "AAGrowlBridge.h"
30
 
#include "AAGrowlPlugin.h"
31
 
#include "tString.h"
32
 
 
33
 
void Growl(tString title, tString message)
34
 
{
35
 
    NSString *nstitle, *nsmessage;
36
 
    nstitle = [[NSString alloc] initWithCString:title.c_str()];
37
 
    nsmessage = [[NSString alloc] initWithCString:message.c_str()];
38
 
    [AAGrowlPlugin growl:nstitle message:nsmessage];
39
 
    [nstitle release];
40
 
    [nsmessage release];
41
 
}
42