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

Can't build any MonoMac samples on MonoDevelop 3.0 in OS X

I just did a clean install of MonoDevelop 3.0 in OS X (10.7.2) and then did a Git checkout of MonoMac. I can't build any of the samples included in the MonoMac repository, and I get the same error every time after the output says the build…
Dave
  • 2,409
  • 3
  • 22
  • 28
3
votes
2 answers

MonoMac events - Changing Color of NSTable row

I am trying to change row color in NSTableView by subscribing to WillDisplayCell event. First, this event is never raised. Second, the fields in the NSTableView are no longer selectable, thus functionality is broken. Same behavior can be observed…
tomitrescak
  • 1,072
  • 12
  • 22
3
votes
1 answer

MonoMac Create Mac Installer results in Merging Mono Failed. FATAL UNHANDLED EXCEPTION

I am using MonoDevelop 2.8.8.4 and MonoFramework (MDK) 2.10.9_8. I'm also using Mac OSX Lion 10.7.3 and have installed XCode 4.3.1 for Lion SDK. My MonoMac application runs fine when debugging with MonoDevelop. Then I tried to create the…
CircleOf13
  • 35
  • 2
2
votes
1 answer

MonoDevelop is not generating IB outlets for my MonoMac project

I am getting back in to MonoMac, and straight away, experiencing problems. I have added my outlets and actions to my XIB files, and linked them with IB controls, saved my XIB, and returned to MonoMac, and it is not regenerating the C# files, so the…
Adam
  • 4,159
  • 4
  • 32
  • 53
2
votes
1 answer

Mono project: How do I assign a C# generic list as a TableView's datasource?

I try to do this, with no luck: private List mPeople = new List(); public List People { get {return mPeople;} set {mPeople=value;} } partial void CreatePeople (MonoMac.Foundation.NSObject…
RobC
  • 1,303
  • 3
  • 15
  • 32
2
votes
1 answer

MonoMac reverting application icon change

I'm converting a small c# application from windows to osx using MonoDevelop and MonoMac. I've changed the icon of the app using the Info.plist located inside the app contents directory by adding the CFBundleIconFile and the name of my icon, residing…
Birken
  • 43
  • 1
  • 3
2
votes
1 answer

Drawing in MonoMac

I am trying to draw some circles on a view in MonoMac, but I don't have a single idea where to start from. Under .NET on Windows I'd do something like Canvas canv = new Canvas(); Ellipse ell = new Ellipse(); Canvas.SetLeft(ell,…
Girildo
  • 35
  • 6
2
votes
1 answer

using mono mac with xcode

I have installed MonoDevelop and Xcode 4.1. When I create a project and click on .xib file and build the project in Xcode I get the following error: Ld DerivedData/FinalTest/Build/Products/MonoMac/FinalTest.app/Contents/MacOS/FinalTest normal i386 …
Adnan Latif
  • 77
  • 1
  • 12
2
votes
0 answers

Best way to populate an NSTableView with an Image column and some Text columns- MonoMac c#

I'm trying to populate an NSTableView with an Image column and some text columns. At the moment I have populated a purely text columns NSTableView, using the method found in the NSTableView sample in the monomac samples, but I think it might be a…
2
votes
2 answers

Get video resolution on Mac via .NET

I can get informations about video-files like resolution by using the Shell32.dll under windows. Is there some way to do this (in C# - running under the mono framework) that will work on Mac?
petko_stankoski
  • 10,459
  • 41
  • 127
  • 231
2
votes
1 answer

MonoMac Platform Interop with Framework

I have code that uses the DllImport attribute to talk with an unmanaged assembly. In OS X, this assembly is installed as a framework. [DllImport("libraryname", CallingConvention = CallingConvention.Cdecl)] public static extern void…
sohum
  • 3,207
  • 2
  • 39
  • 63
2
votes
1 answer

Debugging resource strings are unavailable (Silverlight + MonoMac)

I have a Silverlight application that I have written a launcher for in Mac using MonoMac (basically an embedded web browser control that loads the page containing the SL xap). However, I keep getting an error that I can't for the life of me…
sohum
  • 3,207
  • 2
  • 39
  • 63
2
votes
0 answers

Error with bundled Mono runtime in MonoMac app bundle

I've packaged my first MonoMac application! Hurrah! I used the resulting .pkg to install the app on a test system, opened it....and nothing happend. I checked Console.app and saw the following in there: 8/15/11 9:16:22 PM …
johnluetke
  • 3,393
  • 1
  • 20
  • 25
2
votes
2 answers

Mono C# PInvoke - Get CFString from external lib

I have a lib that returns a CFString, and I'm trying to get that string value in C#.. The problem is that I don't know how to do this in C#.. Making the external function return a CFString won't work as it throws an exception "Type…
BraCa
  • 351
  • 1
  • 5
  • 13
2
votes
1 answer

Merging Mono failed when creating installer for osx

I get the following error when I try to publish my MonoMac application as mac installer. I am using MonoDevelop 2.4.2, MonoMac 2.4.2.4 and the project is a fresh project created by the "C# MonoMac Project". I just added two classes and called them…
Zebi
  • 8,682
  • 1
  • 36
  • 42