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

Receiving the Drag Drop in MonoMac NSView?

It's my first post here, on this greet website. I'm an experienced C#, .Net and Mono user but Noob in MonoMac, I'm trying to write an App that receives a folder on an NSView and uses its path to do things with the files inside the folder... The…
Rojan Gh.
  • 1,062
  • 1
  • 9
  • 32
4
votes
2 answers

How can I make an object a delegate of a window?

I am trying to figure out MonoMac with Xcode 4 and most things appear to work. However, I cannot figure out how to get windowWillClose: to work. I added [Export ("windowWillClose:")] void windowWillClose(NSNotification notification) { …
Andrew J. Brehm
  • 4,448
  • 8
  • 45
  • 70
4
votes
1 answer

Monomac An Exception as thown by the type initializer for System.Net.WebRequest

I'm writing a program in monomac to ftp files to a server. I used the FtpWebRequest as FtpWebRequest request =(FtpWebRequest)WebRequest.Create("ftp://serverip/filename"); When I'm running this code in monodevelop its running properly. But when I…
4
votes
1 answer

Is it possible to use Razor as a standalone library (without any asp.net business) on OSX (via Mono)

I would like to write a proof of concept MonoMac app which renders html "Views" using c# and Razor. Is this possible? If not, does anyone recommend any other Templating engines that compare to the simplicity of Razor. I don't mind writing it in…
andy
  • 8,775
  • 13
  • 77
  • 122
4
votes
1 answer

How to quit MonoMac app when window closes?

I can use - (BOOL)applicationShouldTerminateAfterLastWindowClosed: method to quit cocoa app when window closes by using the method in application's delegate. How can I do the same thing with MonoMac? In general, how can I map objective-c method to…
prosseek
  • 182,215
  • 215
  • 566
  • 871
4
votes
2 answers

NSImage from byte array

I'm trying to display an image in a NSImageView, with an image contained in a Byte array. How can I do this? From what I understand I need to convert my byte[] to an NSData variable and feed that to an NSImage. Is this correct? How do I do it? I've…
Robin Heggelund Hansen
  • 4,906
  • 6
  • 37
  • 54
4
votes
2 answers

MonoMac: and Xcode 4.0 error: "Unknown Window class MainWindow in Interface Builder file"

I've created a new MonoMac project and opened the MainWindow.xib with Interface Builder (Xcode). After doing a simple change (renamed Window title), the project can't be built anymore. Does anyone know how to fix this? I'm using MonoDevelop 2.6,…
Joseph jun. Melettukunnel
  • 6,267
  • 20
  • 69
  • 90
4
votes
2 answers

Avoid Mac app crashing after unhandled exception

I want to prevent my app from closing after an unhandled exception has been raised. I'm doing this with Xamarin and MonoMac, but I think I could translate Objective-C answers to C#. When an Exception happens and it's not caught anywhere, I register…
Luis
  • 2,833
  • 3
  • 27
  • 41
4
votes
2 answers

Customize Login Screen Mac OSX (SFAuthorizationPluginView)

I'm trying to extend the login screen in MacOSX 10.9.1 (Mavericks). As I found out, this is possible by implementing a new authentication plugin and install it in to the authorization database. I've downloaded the NameAndPassword example which shows…
cansik
  • 1,924
  • 4
  • 19
  • 39
4
votes
1 answer

Is Xamarin Studio absolutely required to release Mono apps on the Mac App Store & MonoMacPackager obsolete?

There was a time, not two years ago, when you could didn't need Xamarin.Mac to deploy Mono apps to the Mac App Store. To be clear, that's the store for Mac OS X desktop apps, not iOS apps. Now the MonoMacPackager page says the following: If you…
ruffin
  • 16,507
  • 9
  • 88
  • 138
4
votes
1 answer

Sandboxed Mac App with helper command line tool

I am getting the following error when submitting my app Invalid Signature - the main app bundle MyApp at path MyApp.app is signed but the signature is invalid. The following error(s) were reported from codesign: a sealed resource is missing or…
Hausland
  • 127
  • 5
4
votes
0 answers

How to create binding Obj-c library to MonoMac from a framework

For my project I have to interact with a device on mac. The constructor provides me an objective-c framework : header file + binary file without extension I would like to create a binding library from this framework for MonoMac. I've been reading…
4
votes
1 answer

MonoMac WebView - Show Console or Web Inspector?

Trying to figure out how to show the webkit console or inspector from a MonoMac application. It looks like it can be done in Objective-C by setting WebKitDeveloperExtras. [USER_DEFAULTS registerDefaults:[NSDictionary dictionaryWithObject:…
berg
  • 614
  • 3
  • 9
  • 23
4
votes
1 answer

How to Register a Service in Mac OS?

I am experimenting with Mono, MonoMac, and C#. I try to write a simple application based on a service for Mac OS. I followed Apple's developer documentation on implementation of service providers. My problem is: how to register a service. In…
Helge
  • 41
  • 1
4
votes
1 answer

Submitting sandboxed MonoMac app without accessing shared memory?

I have a Sandboxed MonoMac based application in the MacAppStore, with the latest update to the app pushed to MAS I received a message from Apple that the application accesses /dev/shm, and that this update will be allowed but future updates must not…
NeoDarque
  • 3,222
  • 3
  • 19
  • 21
1 2
3
21 22