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
4
votes
1 answer

iMac - missing x86 version of GameKit

If I run this command: file /System/Library/Frameworks/GameKit.framework/GameKit I get: /System/Library/Frameworks/GameKit.framework/GameKit: Mach-O 64-bit dynamically linked shared library x86_64 Which equates to my iMac (a brand new one) is…
jonathanpeppers
  • 26,115
  • 21
  • 99
  • 182
4
votes
2 answers

How to implement Cocoa copyWithZone on derived object in MonoMac C#?

I'm currently porting a small Winforms-based .NET application to use a native Mac front-end with MonoMac. The application has a TreeControl with icons and text, which does not exist out of the box in Cocoa. So far, I've ported almost all of the…
Justin Aquadro
  • 2,280
  • 3
  • 21
  • 31
4
votes
1 answer

How do you get a list of network interfaces in Mono on Mac?

Creating a Mono console application in MonoDevelop targeted at Mono/.NET 4.0 on OS X, to function as a TCP socket server. The following line of code fails (that you would normally use on the Windows side of things): var interfaces =…
Brandon
  • 13,956
  • 16
  • 72
  • 114
3
votes
3 answers

MonoMac projects cannot compile: ibtool exited with code 1 - Can't run /Developer/usr/bin/ibtool (no such file)

I'm moving my first steps in MonoMac. But I stopped right at the beginning due to some configuration error. I've created a new ManoMac project in MonoDevelop, and then tried some other sample MonoMac xamarin projects from GitHub, but I always get…
Emanuele Sabetta
  • 1,571
  • 12
  • 34
3
votes
1 answer

List of keyEquivalent strings for special keys

I'm trying to programmatically set the KeyEquivalent and KeyEquivalentModifierMask for my NSMenuItem objects (in MonoMac). For alphanumeric keys ("a-z", "0-9") this is not a problem, but I do want to be able to set key equivalents for keys such as…
sohum
  • 3,207
  • 2
  • 39
  • 63
3
votes
1 answer

Having trouble getting the Mono GUI designer to appear

This is almost too embarrassing to ask... I create a new Monomac project (though I get the same issue with Gtk#); Mono then drops me in the source view for Main.cs. Now how do I get to the GUI design view? I can't figure it out for the life of…
user1058785
  • 41
  • 2
  • 4
3
votes
1 answer

In Mono on OSX how do I get access to the current proxy?

Both GetSystemWebProxy and DefaultWebProxy return null. WebRequest.GetSystemWebProxy(); WebRequest.DefaultWebProxy;
Simon
  • 33,714
  • 21
  • 133
  • 202
3
votes
1 answer

Handle a MonoMac Exit/Window Close Event

Similar to this question I posted earlier: Handle a WPF Exit Event I found a solution in Objective C, but I'm not familiar with how to port this with Mono. EDIT I found that I could use the following override to do what I wanted…
sohum
  • 3,207
  • 2
  • 39
  • 63
3
votes
1 answer

Where is MonoDevelop.Macinterop reside?

I see some classess I would Like to use here https://github.com/mono/monodevelop/tree/master/main/src/addins/MacPlatform/MacInterop But I cannot find the dll where the namespace MonoDevelop.Macinterop resides in??
Joe
  • 721
  • 9
  • 22
3
votes
3 answers

Finding the path of an image file inside a monomac project

I am new to mono and monomac and i got stuck with something that i hope should be really easy to fix. In my application i want to change some images at runtime, so i created an "Images" folder with my pics inside the root of the project. But when i…
Andrea
  • 320
  • 4
  • 10
3
votes
3 answers

MonoMac - how can I execute apple script

I am trying to create a simple app with MonoMac and need to execute apple script to access playlist information from different media players (see my previous question). I decided to give MonoMac a try because I am very familiar with C# and .net…
Zebi
  • 8,682
  • 1
  • 36
  • 42
3
votes
1 answer

Displaying a Webpage in a WebView Within a Window Programmatically Using MonoMac

I really didn't want to have to ask this here, because it seems to me this should be really basic and simple, but I can't find any good examples online after searching for several hours between yesterday and today. So, here goes: I'm trying to…
Jyosua
  • 648
  • 1
  • 6
  • 18
3
votes
0 answers

App Startup in OSX with Xamarin.Mac

How would one run an app at startup (user login) with Xamarin.Mac? So far I have come across a few solutions, of which I have run in to some difficulties and want to gauge which is best before proceeding. Service Management Framework Using this…
Daniel Park
  • 3,903
  • 4
  • 23
  • 38
3
votes
1 answer

PCLStorage on MonoMac/Xamarin.Mac - NotImplementedException?

I've create a cross platform application which I've implemented successfully in .Net, IOS and Android. I'm currently working on the Mac version. I've abstracted 90% of the applications functionality into several Portable class libraries, which are…
Jim
  • 479
  • 2
  • 8
3
votes
2 answers

MonoMac window closing without error

I'm just starting out with MonoMac in Xamarin Studio, and I've run into the strangest problem: I a window with an NSButton and a NSTextField on it. By this point I've cut out the event handler on the button, so it doesn't DO anything, except…
Joe Strout
  • 2,634
  • 2
  • 28
  • 39