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
3
votes
2 answers

only one C# event handler being invoked

My (admittedly shaky) understanding is that you should be able to add any number of delegates to a C# event, and they all get invoked (in some undefined order). But that does not appear to be the case in my project. I've got it boiled down to two…
Joe Strout
  • 2,634
  • 2
  • 28
  • 39
3
votes
1 answer

Error compiling MonoMac on Mac OS 10.9.1

I am trying to compile MonoMac on Mac OS 10.9.1 The instructions are straightforward, so I execute them: git clone https://github.com/mono/maccore.git git clone https://github.com/mono/monomac.git cd monomac make Unfortunately it…
Nicolas Raoul
  • 58,567
  • 58
  • 222
  • 373
3
votes
1 answer

Logging runtime crashes in mono on OS X

I'd like to know about any and all crashes of my app 'in the wild'. We can capture managed exceptions easily enough using AppDomain.CurrentDomain.UnhandledException. Occasionally we get crashes in unmanaged code (either through our own interactions…
TheNextman
  • 12,428
  • 2
  • 36
  • 75
3
votes
2 answers

Prevent editing of NSTextField by double right-click

I am using MonoMac/C# and have an NSOutlineView where some of the items are editable. So if you select an item and then click it again (slow double click) the NSTextField of the row enter edit mode. My problem is that this happens even if you…
Christoffer Reijer
  • 1,925
  • 2
  • 21
  • 40
3
votes
0 answers

Subclass of NSProxy

I'm porting objective-c library to mono one.There are several classes have interfaces based on NSProxy. But monomac has no NSProxy. Can anyone out there help me to figure out the best way to implement NSProxy, or maybe someone have experience to do…
mxmind
  • 31
  • 1
3
votes
1 answer

Creating a windowless menu-bar icon application in Monomac/Xamarin C#

I am attempting to create an application in MonoMac/Xamarin.Mac that does not have a dock icon, nor a visible window when it launches and only an icon in the top-right menu bar. I have set LSUIElement = 1 (tried both String and Boolean types) in…
BB1
  • 304
  • 2
  • 8
3
votes
0 answers

Call Objective C code from .NET / Mono(Mac)

I'm porting a .NET-based test automation framework to Mac OS X. I have significant .NET experience, however, I'm totally a rookie in the Mac world. I need to call Objective C code from .NET / Mono. I started with the "MonoMac - Binding Objective-C…
user2519450
  • 91
  • 1
  • 5
3
votes
1 answer

Writing audio device loopback on MacOS with Xamarin (C#)

I am developing cross platform (Windows, Mac) desktop application that will be able to catch desktop sound. I already achieved this with NAudio on Widnows, but I have problems with OSX. From what I have found, there is MonoMac implementation that…
Jakub Szczygieł
  • 1,203
  • 1
  • 13
  • 26
3
votes
1 answer

How to set Xamarin MonoMac project so its build outputs .app package instead of .exe?

I am trying to get Mac package (.app) as build output when building MonoMac project in Xamarin. This project is actually a default one - it only displays an empty window and can be created in Xamarin through: Add New Project..., select Mac(open…
Bojan Komazec
  • 9,216
  • 2
  • 41
  • 51
3
votes
2 answers

How do I open a window as a modal dialog in MonoMac using C#?

I am developing a Cocoa application with MonoMac (C#). I have a class MyWindowController that inherits MonoMac.AppKit.NSWindowController, and open a new instance of this window like this: MyWindowController mwc = new…
Erlend D.
  • 3,013
  • 6
  • 37
  • 59
3
votes
2 answers

Is it possible to bundle the Mono runtime on OS X (without using Xamarin)?

I want to bundle the Mono runtime with my OS X application, so that the users won't need to install an additional framework just to run my application. When attempting to use MonoDevelop's automatic packaging feature, and checking "Include the Mono…
Erlend D.
  • 3,013
  • 6
  • 37
  • 59
3
votes
1 answer

Xamarin.Mac - Issue submitting to Mac App Store

We are in the process of submitting our app for the Mac App Store. I get the following email from Apple when submitting to the store: Dear developer, We have discovered one or more issues with your recent delivery for "YourApp". To process your…
jonathanpeppers
  • 26,115
  • 21
  • 99
  • 182
3
votes
1 answer

Can Managed.Windows.Forms be used in MonoTouch?

I have a .NET application that I am porting to Mono so it can run on both Mac and iOS. Currently my application uses System.Windows.Forms for mouse and keyboard events. In MonoMac I know I can just port the code over with minimal tweaks but can I do…
shmuelie
  • 1,205
  • 1
  • 9
  • 24
3
votes
2 answers

Instantiate an additional window with monomac/c#

I've been searching all over for the answer to this question, and while I realize it's likely very trivial, somehow the answer eludes me. I need to show a second window (launched from clicking a menu item, if that matters). I know perfectly well how…
3
votes
0 answers

Thread 0x0 may have been prematurely finalized with NSOpenPanel in MonoMac

I have problem when there is call to an object of type NSOpenPanel from an action of an object of type NSMenuItem. My MainController has the next methods, where tblTest is a NSScrollView: public override void AwakeFromNib () { …
GustavoTM
  • 485
  • 6
  • 13