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

Compile MonoMac and Xamarin.Mac libraries in Visual Studio

How can I setup MonoMac and Xamarin Mac to be compiled in Visual Studio as it is for MonoTouch? In this case I am just building libraries that are pure Mono (but do refer to the MonoMac.AppKit and .Foundation. The ultimate goal is to get TeamCity to…
tofutim
  • 22,664
  • 20
  • 87
  • 148
0
votes
1 answer

When I load from a .nib do I still need to create a view to assign to View?

Assuming that I call protected MyViewController(string nibName, NSBundle bundle) : base(nibName, bundle) { } do I still need to public override void LoadView { View = new MyView(...); base.LoadView() } It seems that calling the nib…
tofutim
  • 22,664
  • 20
  • 87
  • 148
0
votes
1 answer

How do I detect NSDatePicker ValueChanged in MonoMac?

Unlike UIDatePicker in Monotouch, the NSDatePicker in MonoMac does not appear to have "ValueChanged". How do I detect changes? Ideally where datePicker is an NSDatePicker, I want to datePicker.ValueChanged += DatePickerOnValueChanged For events, I…
tofutim
  • 22,664
  • 20
  • 87
  • 148
0
votes
1 answer

Adding NSPopoverDelegate to my MainWindowController

I need to add a delegate to my MainWindowController - which has all the outlets and actions and drives the program. In ObjectiveC, the following would work NSWindowController < NSPopoverDelegate > How would I do this in MonoMac? Again, to put it a…
tofutim
  • 22,664
  • 20
  • 87
  • 148
0
votes
1 answer

Show context menu for some items in NSOutlineView

I have a SourceList (NSOutlineView) and I want to display a context menu for some of the items. Looking around I have found answers in Cocoa and Obj-C but I am trying to do this in MonoMac and C#. It seems to me I need to do my own custom class…
Christoffer Reijer
  • 1,925
  • 2
  • 21
  • 40
0
votes
1 answer

Listen to events from programmatically created NSView

I have created a sidebar inside my C#/MonoMac application using an NSOutlineView and got help creating the items in the question Create NSView programmatically in Xamarin Studio. But now I have made some items in the outline view editable and of…
Christoffer Reijer
  • 1,925
  • 2
  • 21
  • 40
0
votes
1 answer

MonoMac Packaging Error

I am using MonoMac 3.0.6 with Mono Runtime 2.10.12 and I have created an app with it. So, I wanted to pack the MonoRuntime with it: went to it's options and selected to link "Framework SDKs Only". When I am building it I am getting this…
Coder Guy
  • 49
  • 9
0
votes
1 answer

MonoDevelop tries to sign assembly despite being configured to NOT sign assemblies

I want to build log4net 1.2.11 (in MonoDevelop 3.0.5 on OS X 10.6.8). I get this error: error CS1548: Error during assembly signing. The specified key file `......\log4net.snk' does not exist ... even though the project is configured to NOT sign…
Nicolas Raoul
  • 58,567
  • 58
  • 222
  • 373
0
votes
1 answer

Beginner needs help mono on os x 10.8.4

I'm a complete beginner at all of this so you may have to bear with me. I'm using a mac os x 10.8.4 and I want to run a windows exe file on my mac using mono. When I try to run any program I get the same error and I don't know what it means. Here's…
0
votes
2 answers

Clipboard.GetText() always returns empty string in Mono on Mac

Is there a way to get the clipboard on a Mac in Mono that doesn't return an empty string? This is using the latest NON-beta version of mono. Clipboard.SetText(String) works fine and I can paste to other…
shane
  • 415
  • 5
  • 18
0
votes
1 answer

MonoMac: NsView and System.Drawing.Graphics

I'm trying to get a .NET 4.0-application to work under Mac with MonoMac. Unfortunately I need System.Drawing.Graphics at some point. I find a lot about using System.Drawing with a NsView if I google it, but nothing which works when it comes to…
Richard
  • 741
  • 2
  • 7
  • 17
0
votes
1 answer

MemberInfo not found for enum custom attribute

I can't seem to be able to read a custom enum attribute using the following code: public class CustomAttribute : Attribute { public CultureAttribute (string value) { Value = value; } public string Value { get; private set; } } public enum…
James
  • 80,725
  • 18
  • 167
  • 237
0
votes
1 answer

Changing coordinates of CoreGraphics to top left causes ShowText to render upside down

I have configured a CGContextPDF so the (0,0) coordinates are at the top left and not the bottom left using the following: context.TranslateCTM(0, height); context.ScaleCTM(1, -1); However, now whenever I call ShowText the text is rendered upside…
James
  • 80,725
  • 18
  • 167
  • 237
0
votes
2 answers

MonoMac Package Does NOT Include Images

I have several images and one application icon in my MonoMac application, all with build action set to "content", but when I build the installer (.pkg) file and install it on another machine, none of the images are available! Is this because I'm…
LandonC
  • 889
  • 1
  • 16
  • 28
0
votes
1 answer

Regression in NSKeyedUnarchiver

My code which uses NSKeyedUnarchiver now throws a TypeLoadException when using the latest monomac from Git: System.EntryPointNotFoundException: monomac_IntPtr_objc_msgSend_IntPtr at at (wrapper managed-to-native)…
TheNextman
  • 12,428
  • 2
  • 36
  • 75