Mac Samples

AnimatedClock

Demonstrates the use of custom property animations for `CALayers` in the `CoreAnimation` Layers API.

AnimatingViews

Demonstrates how to use `CoreAnimation` to animate views.

AzureToDoMac

Demonstrates how to use Azure Data in a Xamarin.Mac application.

Bananas

This sample shows how to build a basic game using Scene Kit.

Blurs, translucency and vibrancy on OS X

Demonstrates how to use the options of NSVisualEffectView to do blurs, translucency and vibrancy.

ButtonMaddness

This is a button sample for mac.

CAQuartzComposition

Demonstrates use of the `CoreAnimation` and `QuartzComposition`.

CFNetwork

CFNetwork Xamarin.Mac sample.

CircleView

Layout circular text on a custom view using NSLayoutManager.

CocosSharp BouncingGame Project for iOS and Android

This is a small, complete game using CocosSharp for iOS and Android. It is the result of working through the the entire Introduction

Constraints

This sample shows how to use UI constraints in Xamarin.Mac apps.

CoreAnimationBook

Demonstrates how to use CoreAnimation with Xamarin.

CoreTextArcMonoMac

Demonstrates how to use `CoreText` to draw text along an arc in a Xamarin.Mac application.

CoreWLANWirelessManager

An example application which utilizes the `CoreWLAN` Framework.

Custom Fonts

Demonstrates how to use Custom Fonts embedded in a Xamarin.Mac application.

DatePicker

Demonstrates the use of the `NSDatePicker` control with Xamarin.Mac.

DockAppIcon

Demonstrates the use of the `NSDockTile`.

DocumentSample

Demonstrates how to create a Document-based application.

Drag and Drop Example

Demonstrates how to use Drag an Drop in a Xamarin.Mac application.

DrawerMadness

DrawerMadness Xamarin.Mac sample.

Drawing Models in MonoGame

This is a small demo game using MonoGame for iOS and Android, using a shared code project. It is the result of working through the the

Drawing with Vertices in MonoGame

This is a small demo game using MonoGame for iOS and Android, using a shared code project. It is the result of working through the the

Drawing with Vertices in MonoGame

This is a small demo game using MonoGame for iOS and Android, using a shared code project. It is the result of working through the the

Earthquakes

Demonstrates how to use a "private" persistent store coordinator.

ExtensionSamples

Demonstrates how to use app extensions in Xamarin.Mac.

FileCards

Demonstrates the use of `NSPageController`.

Fire

Fire sample for Xamarin.Mac.

FSEvent Watcher

Directory monitoring sample app using [FSEvents from CoreServices].

GLFullScreen

Demonstrates `OpenGL` drawing to the entire screen.

GlossyClock

Demonstrates the use of the `CoreAnimation` Layers API and KVO bindings.

GLSLShader

Simple GLSL shader harness program that does nothing more than draw a line on the screen.

GUIUnit Example

This is a quick example showing how to package up a nunit test that requires Xamarin.Mac into a bundle and invoke it using guiunit.

HeartRateMonitor

Demonstrates discovering, connecting and retrieving data from Bluetooth LE heart rate monitors.

Hello, Mac

Demonstrates how to build your first Xamarin.Mac application.

HttpClient

Shows how to use both the .NET and Objective-C web-requests.

ImageKit Demo

Demonstrates IKImageBrowserView, IKImageBrowserDataSource, IKImageBrowserItem, and more.

ImageProtocol

Demonstrates how to use ImageProtocol with Xamarin.Mac.

MacCollectionNew

Demonstrates how to use Data Binding and Collection Views in a Xamarin.Mac application.

MacControls

Demonstrates how to use Standard AppKit Controls in you Xamarin.Mac Application.

MacCopyPaste

Demonstrates how to use Cut, Copy & Paste in a Xamarin.Mac application.

MacCustomControl

Demonstrates how to create a custom UI element in a Xamarin.Mac application.

MacDatabase

Demonstrates how to use SQLite Databases in a Xamarin.Mac application.

MacDatabinding Storyboard

Demonstrates how to use Data Binding in a Xamarin.Mac application using .storyboard files.

MacDatabinding XIBs

Demonstrates how to use Data Binding in a Xamarin.Mac application with .xib files.

MacDialog

Demonstrates how to use Dialogs in a Xamarin.Mac application.

MacImages

Demonstrates how to use Images and Icons in you Xamarin.Mac Application.

MacInspector

Shows how to work with an Inspector Panel in a Xamarin.Mac app.

MacMenus

Demonstrates how to use Menus in a Xamarin.Mac application.

MacOpenTK

An introduction to using OpenTK in a Xamarin.Mac application.

MacOutlines

Demonstrates how to use Outlines in a Xamarin.Mac application.

MacSourceLists

Demonstrates how to use Source Lists in a Xamarin.Mac application.

MacTables

Demonstrates how to use Tables in a Xamarin.Mac application.

MacToolbar

Demonstrates how to use Toolbars in a Xamarin.Mac application.

MacWindows

Demonstrates how to use Windows in a Xamarin.Mac application.

MacXibless

Demonstrates how to define UI in C# code for a Xamarin.Mac application.

MarkdownViewer

This Mac sample is quite useful for authoring and viewing __Markdown__ files.

MonoGame WalkingGame Project for iOS and Android

This is a small demo game using MonoGame for iOS and Android, using a shared code project. It is the result of working through the the

MonoMacGameView

MonoGame sample for mac.

MouseTrackingExample

Demonstrates how to using mouse tracking in a Xamarin.Mac app.

NSAlert

`NSAlert` sample for mac.

NSComboBoxTest

Demonstrates how to provide completion hints.

NSCustomView

Demonstrates the creation of two custom `NSView`s, which each paint themself via different mechanisms.

NSImageName Sample

A simple sample application demoing the `NSImageName` enum for `NSImage.ImageNamed`.

NSPortExample

This is an example showing use of NSMessagePort and CFMessagePort to send information cross process, between applications.

NSScrollExample

Demonstrates how to use Standard NSScrollView in your Xamarin.Mac Application.

NSTableView / NSOutlineView

Demonstrates the programmatic creation of and use of `NSTableView`/`NSOutlineView`.

NSTableViewBinding

Demonstrates how to use Cocoa Bindings with a `NSTableView`.

NSTextAttachmentCell

Demonstrates how to perform custom cell sizing and rendering.

OpenGLLayer

OpenGLLayer sample for Mac.

OpenGL-NeHe

This directory contains ports of the NeHe OpenGL tutorials from: [Nehe Gamedev].

OpenGLViewSample

OpenGLView sample for Mac.

OutlineView

Demonstrates how to populate an OutlineView using an NSViewOutlineDataSource

PopupBindings

Demonstrates how to use the bindings to manage the contents of `NSPopupButton`.

PredicateEditorSample

Demonstrates how to use the `NSPredicateEditor`.

ProgressBarExample

Demonstrates how to use Timer and Progress Bar in a Xamarin.Mac application.

QTRecorder

Demonstrates how to use various QuickTime features.

ReactiveUIExample

Demonstrates how use ReactiveUI in C# code for a Xamarin.Mac application.

RoundedDisplayWindow Sample

Demonstrates how to create windows with custom shapes, no title bar, and transparent content.

Rulers

Demonstrates many of the interactions between an `NSRulerView` and its client view.

Scene Kit Session WWDC 2013

Demonstrates rendering a 3D environment and presenting a series of slides with Scene Kit objects.

Scene Kit Session WWDC 2014

Demonstrates rendering a 3D environment and presenting a series of slides with Scene Kit objects.

SceneKitViewer

This is a Xamarin.Mac version of Apple's simple SceneKitViewer.

SCNetworkReachability

SCNetworkReachability sample for Mac.

SearchField

Demonstrates how to use a special text control called `NSSearchField`.

SkinnableApp

Skinnable App sample for Mac.

SourceWriter

The SourceWriter is a full app example that includes many of the features a user would expect to find in a typical Mac app.

StillMotion

Demonstrates how to capture live video from the system camera.

Touch

This sample illustrates how to work with touch in iOS. Specifically, it shows how to handle touch events, use pre-defined gesture

UseMSBuildToCopyFilesToBundleExample

This sample shows you how to use msbuild to copy arbitrary files into your bundle.

UserNotificationExample

User notification example for Mac.

VillainTracker

Villain tracker for Mac.

WhereIsMyMac

Demonstrates the use of the CoreLocation API.

XMBindingExample

This is a quick example, showing how to use bindings project to create a binding for Xamarin.Mac.

XMLocalizationSample

Demonstrates how to use localization in Xamarin.Mac application.