TeaTimer for Mac

This article will cover how to build a Mac application with Mono.Mac, making use of XCode interface builder and NSComboBoxDataSource. TeaTimer will let us chose a tea variety and it will the time how long it will take to make it.

Open Xamarin studio and start a new project. Select a Mono.Mac application.

Screenshot 2013-10-26 17.00.57

Open the MainWindow.xib, which will be our main application window. This will start up XCode interface builder. From the Object library, drag and drop onto the existing window:

  • a combo box, which will display our tea menu,
  • a button, to start the timer,
  • two labels: one for displaying the current time and one for additional information

Continue reading

Kaleidoscope Image Gallery

This recipe is written for the Xamarin iOS 7 Cook-off. The source code can be found here.

iOS 7 introduces a lot of new features. We will explore the gravity and collision behaviors the OS provides natively with its newest version, building a kaleidoscope image gallery.

Start by creating a new Xamarin.iOS project. Go to File > New > Solution. Select C# > iOS from the sidebar and then Single View Application. Name your application and Xamarin Studio will create for us a ViewController.

Screen Shot 2013-09-26 at 11.10.48 PM

Continue reading