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

MonoMac Sqlite version

I am developing an app using MonoMac which uses Sqlite database as a data storage. I am using classes from Mono.Data.Sqlite namespace to access the database. On OS X 10.7.4 SqliteConnection.SqliteVersion property reports 3.6.23.1 (released on 2010…
Giorgi
  • 30,270
  • 13
  • 89
  • 125
3
votes
1 answer

Monodevelop on Mac: `Mono.framework MDK is missing`

In Monodevelop, if I enable the Include the Mono runtime in the application bundle checkbox, then I get this error at build: Merging Mono Runtime into app…
Nicolas Raoul
  • 58,567
  • 58
  • 222
  • 373
3
votes
1 answer

DllNotFoundException with DllImport in Mono on Mac

I'm trying to use DLLImport in my Mono Mac project in order to use my own .dylib but I get the DllNotFoundException. I'm guessing it has something to do with my .dylib since I'm able to do this with existing .dylib files such as the…
Niklas.B
  • 43
  • 3
3
votes
2 answers

MonoMac: Best way to convert Bitmap to NSImage

Since MonoMac doesnt have own class Bitmap, i need the best ways to convert image from Bitmap to NSImage. Current my way is: byte[] bytes = SomeFuncReturnsBytesofBitmap(); NSData imageData = NSData.FromArray(bytes); NSImage image = new…
Alexander
  • 431
  • 2
  • 5
  • 19
3
votes
1 answer

Mac app store helper tool Sandboxing

My app consist of two executables the main app executable small console app to process some files, this executable is on Resources folder (no root privileges required) The thing is that I don't know how to submit this app to appstore, I get the…
dalexsoto
  • 3,412
  • 1
  • 27
  • 43
3
votes
2 answers

NullReferenceException when accessing GUI Components in Controllers constructor

In Mono I have a simple NSWindow with Controller on it I drop a NSSplitView and a NSButton. If I try to access the NSSplitView out of the Contstructor or Initialize() Method I get a nullReferenceException. Instead if I try to access the NSSplitView…
john84
  • 2,431
  • 4
  • 24
  • 30
3
votes
0 answers

How can I profile a MonoMac application?

I'm trying to grab some profiling information from my MonoMac application, but can't get it to work, I have tried this: MONO_ENV_OPTIONS="--trace --gc=sgen --profile=log:heapshot" App.app/Contents/MacOS/AppSync But this isn't working. Any idea of…
Maurício Linhares
  • 39,901
  • 14
  • 121
  • 158
3
votes
4 answers

Beep with custom frequency and duration

I want to play Beep sound in my Mac Os X and specify duration and frequency. On Windows it can be done by using Beep function (Console.Beep in .Net). Is there anything equivalent in Mac? I am aware of NSBeep but it does not take any parameters.
Giorgi
  • 30,270
  • 13
  • 89
  • 125
3
votes
1 answer

NSObject.InvokeOnMainThread on MonoMac?

Does "MonoMac.Foundation.NSObject.InvokeOnMainThread" exist in MonoMac?? It does in MonoTouch. I need this for MessageBox threading issues....
zezba9000
  • 3,247
  • 1
  • 29
  • 51
3
votes
3 answers

Creating a simple Hello World app with MonoMac

I installed XCode, MonoMac, Mono and MonoDevelop on a Mac OS X machine, and I cant for the love of me figure out how to successfully wire up a Click event to a simple button. First, I control-dragged my button to the header file, and it created an…
Jeff
  • 12,085
  • 12
  • 82
  • 152
3
votes
3 answers

CoreLocation not working with MonoMac

Ok, so I'm trying to use CoreLocation in a mono mac app. After a few attempts at getting it to work with no luck (the .UpdatedLocation event is never raised), I grabbed this sample from the MonoMac repository. The configuration/use of the…
Joel Martinez
  • 46,929
  • 26
  • 130
  • 185
3
votes
1 answer

MonoMac Signing with "codesign" for Mac Store. (Invalid Binary)

Hi im trying to code sign a MonoMac binary for the Mac Store via "Application Loader". I can submit the app, but the status in "Itunes Connect" will always say "Invalid Binary" !? The reason I have to manually do this is because theres a bug in…
zezba9000
  • 3,247
  • 1
  • 29
  • 51
3
votes
2 answers

Mono command line program dies with "trace trap" message and nothing else

I have a command line Mono application running on the Mac (OSX Lion) and it dies misteriously with the following message: [1] 53342 trace trap "/Library/Frameworks/Mono.framework/Versions/2.10.9/bin/mono" --debug read: -p: no coprocess This…
Maurício Linhares
  • 39,901
  • 14
  • 121
  • 158
3
votes
2 answers

Unexplained null pointer reference, I'm blaming ghosts

I've got the following code: public void DrawInput(string ChatCurrent){ int uCursorTop; int uCursorLeft; uCursorLeft = Console.CursorLeft; uCursorTop = Console.CursorTop; Console.SetCursorPosition(0,…
Winfield Trail
  • 5,535
  • 2
  • 27
  • 43
3
votes
1 answer

When to use MainWindow and when to use MainWindowController in MonoMac

I have just started developing on MonoMac and MonoDevelop 3.0, and I'm really confused on where I am supposed to be routing up my IBOutlets and actions. In all of the samples, MainWindowController is used to wire everything up. However, I just…
Dave
  • 2,409
  • 3
  • 22
  • 28