monomac

Avoid Mac app crashing after unhandled exception

拜拜、爱过 提交于 2021-02-08 17:20:44
问题 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 the event of unhandled exceptions: AppDomain.CurrentDomain.UnhandledException += HandleUnhandledException; And log it: static void HandleUnhandledException(object sender, UnhandledExceptionEventArgs e) { //Log the exception... } But then, when an

Avoid Mac app crashing after unhandled exception

自作多情 提交于 2021-02-08 17:13:54
问题 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 the event of unhandled exceptions: AppDomain.CurrentDomain.UnhandledException += HandleUnhandledException; And log it: static void HandleUnhandledException(object sender, UnhandledExceptionEventArgs e) { //Log the exception... } But then, when an

Avoid Mac app crashing after unhandled exception

夙愿已清 提交于 2021-02-08 17:11:45
问题 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 the event of unhandled exceptions: AppDomain.CurrentDomain.UnhandledException += HandleUnhandledException; And log it: static void HandleUnhandledException(object sender, UnhandledExceptionEventArgs e) { //Log the exception... } But then, when an

Avoid Mac app crashing after unhandled exception

China☆狼群 提交于 2021-02-08 17:07:25
问题 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 the event of unhandled exceptions: AppDomain.CurrentDomain.UnhandledException += HandleUnhandledException; And log it: static void HandleUnhandledException(object sender, UnhandledExceptionEventArgs e) { //Log the exception... } But then, when an

App signing and package installer issue

回眸只為那壹抹淺笑 提交于 2020-01-14 03:03:26
问题 Everyone, i'm facing a few issues when i try to create my app for distribution. i have created every certificate that i need, the Developer an Developer Installer, according to the guide described here developer.xamarin.com/guides/mac/deployment,_testing,_and_metrics/publishing_to_the_app_store/, everything looks fine, the file generated in the bin/release folder can be executed Without issues, but the file that the installer generate itself fails when it start to use some libraries like

CorePlot MonoMac bindings crashing

孤街醉人 提交于 2020-01-11 11:47:08
问题 I am trying to use the CorePlot 0.9 binding for monomac, but that seems to be a hard task. The monotouch sample builds and runs without any problems, but I don't need that one. Since only a CorePlotiOS.dll was present in the binding, I had to build one for osx myself, but first of af all, no bmake.exe was present, so I had to download the monomac source and build it myself first. Then I tried to build the CorePlotOSX.dll but that caused some compilation problems. Looking at the build-script

Listen to events from programatically created NSView

微笑、不失礼 提交于 2020-01-03 05:11:06
问题 I have created a sidebar inside my C#/MonoMac application using an NSOutlineView and got help creating the items in the question Create NSView programatically in Xamarin Studio. But now I have made some items in the outline view editable and of course I want to detect when the items are edited and take action (edit the underlying model, or create a new one if a special "Create new" item was edited). The items can be edited alright, either by double click or pressing Return when it's selected.

Including custom dll and dylib in MonoMac app

好久不见. 提交于 2020-01-02 02:55:31
问题 Background: My MonoMac app uses a custom build of sqlite3.0.8.6.dylib. I need the exact steps to have MyApp.app use this dylib. Here are some steps I took: Copied the dylib to MyApp.app/Contents/SharedSupport. (Related question: is this the preferred location for 3rd party dylibs or is MyApp.app/Contents/Frameworks preferred?) Changed the installed name for the library so that it matches its new location. MyApp.app/Contents/SharedSupport> otool -L libsqlite3.0.8.6.dylib libsqlite3.0.8.6.dylib

Converting custom native MacOS X library to dll using MonoMac

▼魔方 西西 提交于 2019-12-24 15:13:06
问题 I am trying to port a Windows Forms application to MacOS X, using a native interface (.xibs). This app needs to access a hardware device that has MacOS X drivers but I wanted to keep the C# logic already written for the Windows version so it would be easier to update the application in the future. I've created a small Xcode project to test how to access this device and I got it to work, then I rolled it into a .framework and tried to use this in a MonoMac Project. This proved a bit more

How can I start QuickTime and have it start playing a url?

隐身守侯 提交于 2019-12-24 10:01:51
问题 I'm using MonoMac, but I understand cocoa and objc well enough that if you can answer me in those languages, please do. I have a url from my web server which returns an mp4. I'd like my MonoMac application to launch QuickTime and start playing that url. I tried these methods: Process.Start("/Applications/QuickTime Player.app/Contents/MacOS/QuickTime Player", url); but when the url is something like http://webhost/1/blah.mp4, quicktime says "The document blah.mp4 could not be opened. The file