Archive for the ‘MonoTouch’ Category


Running multiple instances of MonoDevelop

Monday January 11th 2010

One of the things that has been niggling me with MonoDevelop – and to be fair it’s more an issue with the Finder – is that by default it’s difficult to run multiple instances of it. It’s always useful to have more than one solution open when you want to compare or copy and paste code from one project to another.

 

A quick search on Stack Overflow found a nice simple solution, which involves kicking off the app from the terminal using -n to tell the Finder to run a new instance. But being lazy, I can’t be bothered typing stuff unnecessarily, so a quick solution is to wrap it in an AppleScript app wrapper.

 

Fire up Applications > Utilities > AppleScript Editor, type in:

 

do shell script “open -n /Applications/MonoDevelop.app”

 

Then select File > Save As, on the save dialog change the File Format to Application and save it somewhere safe (not in the applications folder), using the name MonoDevelop.

 

Then for a nice finishing touch, go back to the Applications folder and click on the MonoDevelop icon, press CMD + I to bring up the Get Info screen, click on the application icon in the top left of the screen and CMD + C to copy it.

 

Go back and find where you saved the AppleScript file, bring up the Get Info window with CMD + I, click on the application icon and paste in the MonoDevelop one with a CMD + V.

 

Then all you need to do is to drag the new AppleScript app to the Dock and you have a quick and easy way of firing up multiple instances of MonoDevelop.

C# from VB.NET – Some helpers

Thursday December 31st 2009

Following on from the post about iPhone development using MonoTouch and C#, I thought I would point out the fact that at the moment MonoTouch doesn’t support Visual Basic for iPhone development. Mono and MonoDevelop themselves do support VB, but just not for iPhone dev just yet. The MonoTouch team say it is on the roadmap, just no date as of yet.

 

So where does that leave the Visual Basic developer? Well, if they want to write iPhone apps using the .NET framework, then needing to learn some C#.

 

For many VB developers, who came to .NET from VB6 (and below), stepping up to a fully object orientated language and the .NET framework was tough enough to grasp, let alone taking on dealing with curly braces as well. Whilst VB.NET is not the same language as VB6, Microsoft did a pretty good job at smoothing the upgrade path for developers (certainly with VS2005 and .NET 2.0 upwards anyway).

 

Many developers will probably have some exposure to other languages, such as PHP, JavaScript, or even Java (remember that?), all of which would make learning C# a bit easier, but if you haven’t then don’t worry too much. If you know the .NET framework, then you’re already halfway there.

 

(more…)

iPhone Development with C# and .NET

Wednesday December 30th 2009

iPhone development using MonoTouch

Well, it’s been a year to the day when I decided to crack on with some iPhone development, and what a year it’s been. Busy is certainly one word that would sum it up. Having plenty of work, especially at a time when many are suffering the effects of a tough financial climate, is something always to be grateful of, but sometimes it can hamper other goals.

 

So how far did I get with Objective-C and iPhone development? Well, I did get some done, and I am certainly a mile up on where I was a year ago, but I haven’t got anything quite completed. It’s been a learning curve for sure, but a good one.

 

I’ve got my Apple Developer account setup, under my new business name of side lane studios, and have plenty of app ideas lined up and ready to take shape, the first of which I was planning on completing in January. It’s about 50% complete at the moment, so I was going to give myself a window to knuckle down with it and submit it to Apple for inclusion in the App Store. Then I came across MonoTouch and everything changed.

 

(more…)