~ubuntu-branches/ubuntu/trusty/monodevelop/trusty-proposed

« back to all changes in this revision

Viewing changes to external/monomac/samples/TwoMinuteGrowler/Main.cs

  • Committer: Package Import Robot
  • Author(s): Jo Shields
  • Date: 2013-05-12 09:46:03 UTC
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: package-import@ubuntu.com-20130512094603-mad323bzcxvmcam0
Tags: upstream-4.0.5+dfsg
ImportĀ upstreamĀ versionĀ 4.0.5+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
using System;
2
 
using System.Runtime;
3
 
using System.IO;
4
 
using System.Drawing;
5
 
using MonoMac.Foundation;
6
 
using MonoMac.AppKit;
7
 
using MonoMac.ObjCRuntime;
8
 
 
9
 
namespace TwoMinuteGrowler {
10
 
        class MainClass {
11
 
                static void Main ( string[] args ) {
12
 
                        
13
 
                        var baseAppPath = Directory.GetParent (Directory.GetParent (System.AppDomain.CurrentDomain.BaseDirectory).ToString ());
14
 
                        //var growlPath = baseAppPath + "/Frameworks/Growl-WithInstaller.framework/Growl-WithInstaller";
15
 
                        var growlPath = baseAppPath + "/Frameworks/Growl.framework/Growl";
16
 
                        
17
 
                        Dlfcn.dlopen (growlPath, 0);
18
 
                        
19
 
                        NSApplication.Init ();
20
 
                        NSApplication.Main (args);
21
 
                }
22
 
        }
23
 
}
24