Questions tagged [monomac]

MonoMac is an open source library for building Cocoa applications on Mac OS X using Mono.

MonoMac: an open-source foundation for building Cocoa applications on OSX using Mono.

MonoMac is the result of years of experimentation in blending .NET with Objective-C and is inspired by the same design principles that we used for MonoTouch.

It is also the result of weekend hacking as our day to day work revolves around Mono's efforts on Linux servers, Linux desktops, Visual Studio integration and our mobile efforts. Luckily, it shares some components with MonoTouch.

A new commercially supported offering, Xamarin.Mac, is a superset of MonoMac and include a license to deploy the Mono runtime (without the LGPL requirements).

328 questions
6
votes
1 answer

Proper way to use arrays in MonoMac

I'm just started working on a project in MonoMac, which is pretty cool so far. But there're still some things I'm not sure of. For example: How do you use arrays? Here's what I found out: When I get an NSArray back from a method I'm calling and I…
flohei
  • 5,248
  • 10
  • 36
  • 61
6
votes
0 answers

Simple Mac ProgressIndicator causes crash: "caught causing excessive wakeups"

I have this Button click handler (MonoMac on OS X 10.9.3): partial void OnDoButtonClick(NSObject sender) { DoButton.Enabled = false; // Start animation ProgressIndicator.StartAnimation(this); ThreadPool.QueueUserWorkItem(_ => { …
M.Soma
  • 61
  • 3
6
votes
1 answer

How to reverse NSObject.FromObject back to a regular C# type

What is the reverse of NSObject.FromObject, e.g., getting a regular C# object back out of an NSObject. Understandably, this could only work for simple types. Update. Let's say I even know the type - but not before runtime. I tried Convert.ChangeType…
tofutim
  • 22,664
  • 20
  • 87
  • 148
6
votes
1 answer

Get a File Descriptor Handle from FileStream

I'm using this library https://github.com/ahawker/NLibsndfile for convert audio files with libSndFile from C#, i did this method, for the conversion (coverts wav to aiff): string sourcePath = "/User/Dev/Desktop/a.wav"; string…
GustavoTM
  • 485
  • 6
  • 13
6
votes
2 answers

Creating a simple NSOutlineView datasource with MonoMac

I cant seem to figure out how to create a simple NSOutlineView with 2 columns, and a datastructure that is more than 1 level deep (a hierachy). I've been researching this for days, and all I can find is Objective C examples, which I really can't use…
Jeff
  • 12,085
  • 12
  • 82
  • 152
5
votes
1 answer

Data-binding in a NSCollectionView

I've got a NSCollectionView for which I do have a dataArray and a selectedIndexes NSIndexSet defined in it's File's Owner. (Since I'm working with MonoMac on that project I've had some trouble working with a simple NSArrayController and so I decided…
flohei
  • 5,248
  • 10
  • 36
  • 61
5
votes
1 answer

Separating Abstract UI and Concrete UI for Cross Platform Development (WinForms, Cocoa, GTK+)

I'm currently making an application that has shared code on the backend. As presentation layers I'm using WinForms, Cocoa (MonoMac) and GTK# (Linux). I'm looking for a way to describe my user interface in an abstract way, so that the concrete UI…
Yves Schelpe
  • 3,343
  • 4
  • 36
  • 69
5
votes
1 answer

Dynamically create controls / objects in C# MonoMac (NSButton, NSLabel)

I'm trying to create an NSButton and an NSLabel in code. I'm able to get it created, but I don't know where I should add it and then wire it up for connections. I don't want to use XCode (w/ Interface Builder) because these controls would need to be…
Yves Schelpe
  • 3,343
  • 4
  • 36
  • 69
5
votes
3 answers

How to kill application in Xamarin.Mac

How can i kill the application in xamarin.mac I cant find this.dispose or Application.Exit in xamarinMac So How can I kill the application in Xamarin Mac
Optimus
  • 2,200
  • 8
  • 37
  • 71
5
votes
2 answers

Xamarin.Mac URL Scheme

How do you setup and debug URL schemes with Xamarin.Mac? I added the following to my Info.plist: I then built an installer package and installed the app. But if I open mytest:// in a browser or run open mytest:// command line, neither launches my…
jonathanpeppers
  • 26,115
  • 21
  • 99
  • 182
5
votes
1 answer

Best way to obtain Mac ~/Library/ path when using C# with MonoMac

I have a shared codebase (dll) that I use for both a Windows and Mac project. I'm looking for the best (supported) way of obtaining the path to the Mac Library folder so my project honors the Mac App Store requirements. Right now I'm using…
Keith Boynton
  • 133
  • 11
5
votes
2 answers

Make NSCollectionView render items vertically

Is it possible to make the items in an NSCollectionView render top-down and then left-right instead of left-right and then top-down? To depict it visually, items are currently rendered in the following order: [ 1 ] [ 2 ] [ 3 ] [ 4 ] [ 5 ] [ 6 ] I…
sohum
  • 3,207
  • 2
  • 39
  • 63
5
votes
1 answer

MonoMac - Game Center

Are the Game Center APIs implemented in MonoMac? If not, is there a recommended path for creating C# bindings for them?
jonathanpeppers
  • 26,115
  • 21
  • 99
  • 182
5
votes
0 answers

Are there any real-world MonoMac apps that were Mac AppStore approved?

(I do hope my question still fits into what is allowed to ask here) Having successfully developed and deployed iPhone applications using MonoTouch, I was looking for ways to do it for OS X, too. What I found was MonoMac (also on Github) which looks…
Uwe Keim
  • 39,551
  • 56
  • 175
  • 291
5
votes
1 answer

Is there a MessageBox.Show() equivelant in MonoCode

Is there an equivalent of MessageBox.Show() in MonoMac, or do I have to create a some sort of popup class specifically for this purpose?
Dominic Zukiewicz
  • 8,258
  • 8
  • 43
  • 61
1
2
3
21 22