Skip to content

Instantly share code, notes, and snippets.

View alanmcgovern's full-sized avatar

Alan McGovern alanmcgovern

View GitHub Profile
void BeginDownloadingImage (App app, NSIndexPath path)
{
// Very simple download every image one after another
byte[] data = null;
DownloadTask.ContinueWith (prevTask => {
using (var c = new WebClient ())
data = c.DownloadData (app.ImageUrl);
});
DownloadTask.ContinueWith (t => {
diff --git a/main/src/tools/Makefile.am b/main/src/tools/Makefile.am
index 972a133..8ca6085 100644
--- a/main/src/tools/Makefile.am
+++ b/main/src/tools/Makefile.am
@@ -1,3 +1,8 @@
-SUBDIRS = SharpCoco mdhost mdtool mdmonitor mdcrashlog MacCrashLogger
+SUBDIRS = SharpCoco mdhost mdtool mdmonitor mdcrashlog
+if ENABLE_MACPLATFORM
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidOperationException: Tree iterator has been invalidated.
at MonoDevelop.Ide.Gui.Components.ExtensibleTreeView+TreeNodeNavigator.AssertIsValid () [0x0006a] in /Users/alanmcgovern/Projects/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Components/TreeNodeNavigator.cs:69
at MonoDevelop.Ide.Gui.Components.ExtensibleTreeView+TreeNodeNavigator.get_CurrentPosition () [0x00000] in /Users/alanmcgovern/Projects/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Components/TreeNodeNavigator.cs:121
at MonoDevelop.Ide.Gui.Components.ExtensibleTreeView+TreeBuilder.GetAttributes (ITreeBuilder tb, MonoDevelop.Ide.Gui.Components.NodeBuilder[] chain, System.Object dataObject) [0x00000] in /Users/alanmcgovern/Projects/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Components/TreeBuilder.cs:143
at MonoDevelop.Ide.Gui.Components.ExtensibleTreeView+TreeBuilder.
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: A null value was found where an object instance was required.
at MonoDevelop.Components.Docking.DockFrame.AutoHide (MonoDevelop.Components.Docking.DockItem item, MonoDevelop.Components.Docking.AutoHideBox widget, Boolean animate) [0x0005e] in /Users/alanmcgovern/Projects/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Docking/DockFrame.cs:650
at MonoDevelop.Components.Docking.DockFrame+<AutoHide>c__AnonStorey47.<>m__60 (System.Object , System.EventArgs ) [0x00010] in /Users/alanmcgovern/Projects/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Docking/DockFrame.cs:644
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Obj
commit 3e91db7d600b7d92b327aa6b6550882ed1321be3
Author: Alan McGovern <alan.mcgovern@gmail.com>
Date: Mon Oct 3 11:24:15 2011 +0100
[IPhone] Give a better warning message if there are no provisioning profiles
Direct the user to visit the iOS provisioning portal if they have
no provisioning profiles installed.
diff --git a/MonoDevelop.IPhone/MonoDevelop.IPhone/Project/IPhoneBuildExtension.cs b/MonoDevelop.IPhone/MonoDevelop.IPhone/Project/IPhoneBuildExtension.cs
commit 7c74a8578fa9c99f855863ed87ac201bb4ea4b45
Author: Alan McGovern <alan.mcgovern@gmail.com>
Date: Thu Dec 22 19:05:13 2011 +0000
[IPhone] Quote the extra mtouch args
Fix for bug #554.
diff --git a/MonoDevelop.IPhone/MonoDevelop.IPhone/Project/IPhoneBuildExtension.cs b/MonoDevelop.IPhone/MonoDevelop.IPhone/Project/IPhoneBuildExtension.cs
index e038d24..9a4f166 100644
commit 7c31899ccf3c04e4e477dc0a6be3987ba6dc3452
Author: Alan McGovern <alan.mcgovern@gmail.com>
Date: Thu Dec 22 19:05:13 2011 +0000
WIP: Incomplete - [IPhone] Quote the extra mtouch args
Fix for bug #554.
diff --git a/MonoDevelop.IPhone/MonoDevelop.IPhone/Project/IPhoneBuildExtension.cs b/MonoDevelop.IPhone/MonoDevelop.IPhone/Project/IPhoneBuildExtension.cs
index cc465e0..21eafb1 100644
#!/bin/bash
MONO_PREFIX=/Library/Frameworks/Mono.framework
#MONO_PREFIX=/opt/mono
OSX_SDK="/Developer/SDKs/MacOSX10.6.sdk"
export DYLD_FALLBACK_LIBRARY_PATH=/usr/lib:$DYLD_FALLBACK_LIBRARY_PATH
export LD_LIBRARY_PATH=$MONO_PREFIX/Libraries:$LD_LIBRARY_PATH
export C_INCLUDE_PATH=$MONO_PREFIX/Headers:$C_INCLUDE_PATH
export DYLD_FALLBACK_LIBRARY_PATH=/Library/Frameworks/Mono.framework/Versions/Current/lib:/lib:/usr/lib
void Func ()
{
ThreadPool.QueueUserWorkItem (delegate {
InvokeOnMainThread (() => {
myLabel.Text = "Computation beginning...";
});
Thread.Sleep (10000); // Simulate downloading a large file or calculating lots of stuff
InvokeOnMainThread (() => {
/*
* Copyright (c) 2000 Jeroen Ruigrok van der Werven <asmodai@FreeBSD.org>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright