Skip to content

Instantly share code, notes, and snippets.

@andywhitt
Created February 20, 2012 14:21

Revisions

  1. andywhitt created this gist Feb 20, 2012.
    31 changes: 31 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,31 @@
    441 RegTestApp stat /Users/andy/.mono/registry
    441 RegTestApp stat /Applications/RegTestApp.app/Contents/MonoBundle/mono/4.0/../registry
    441 RegTestApp stat /Applications/RegTestApp.app/Contents/MonoBundle/mono/4.0/../registry/LocalMachine
    441 RegTestApp stat /Applications/RegTestApp.app/Contents/MonoBundle/mono/4.0/../registry/volatile-keys/LocalMachine
    441 RegTestApp stat /Applications/RegTestApp.app/Contents/MonoBundle/mono/4.0/../registry/LocalMachine
    441 RegTestApp stat /Applications/RegTestApp.app/Contents/MonoBundle/mono/4.0/../registry/LocalMachine
    441 RegTestApp stat /Applications/RegTestApp.app/Contents/MonoBundle/mono/registry
    441 RegTestApp stat /Applications/RegTestApp.app/Contents/MonoBundle/mono/registry
    441 RegTestApp stat /Applications/RegTestApp.app/Contents/MonoBundle/mono
    441 RegTestApp stat /Applications/RegTestApp.app/Contents/MonoBundle/mono
    441 RegTestApp stat /Applications/RegTestApp.app/Contents/MonoBundle
    441 RegTestApp mkdir /Applications/RegTestApp.app/Contents/MonoBundle/mono


    Caused by:


    using MonoMac.AppKit;

    namespace RegTestApp
    {
    class MainClass
    {
    static void Main (string [] args)
    {
    NSApplication.Init ();
    Microsoft.Win32.Registry.GetValue (@"HKEY_LOCAL_MACHINE\Software\MyCompany", "Logging", 0);
    NSApplication.Main (args);
    }
    }
    }