Questions tagged [xamarin.mac]

Xamarin.Mac is an open source library for building Cocoa applications on OSX using C# and .NET. It is based on top of the Mono framework.

Xamarin.Mac: an open source library for building Cocoa applications on OSX using C# and .NET.

You can dig into the source code and read the documentation.

584 questions
0
votes
2 answers

Xamarin MacOS app launch at login

I'm trying to make my Xamarin MacOS App to run at login. Looking around I found only very old topics with no solutions. Is there any solution available? Is feasible? My App runs, by default with Administrator Privileges Thanks
Ziba Leah
  • 2,484
  • 7
  • 41
  • 60
0
votes
1 answer

Xamarin.Mac OS X save and retrieve data from file

I'm new to Xamarin.Mac desktop development. I'm building a OS X based application and I need to save and retrieve some text data within my app. I tried the same approach that we use in windows like, create a file and save data into that file and…
njerry003
  • 1
  • 3
0
votes
0 answers

Xamarin.Mac OS X App File.WriteAllText error

I'm trying to save some data in a text file and then read it in macOS app. It works fine when I run it through debugger. But when I try to run it on another machine it gives an error. "Access denied to path" here's my code: if…
njerry003
  • 1
  • 3
0
votes
0 answers

How to properly map an expected DLL name to a native Mac framework for Mono

I am trying to use the Chromium Embedded Framework.framework in my Mac app. In my sample .net code, this framework is referenced as libcef.dll. When I call a method on the framework, I get a System.DllNotFound exception. I have looked at DLL maps to…
Josh Laase
  • 326
  • 1
  • 13
0
votes
0 answers

Access file as Sudo

How can I read a file as sudo/admin on Mac in C# (xamarin.Mac) I made a File in /usr/ and I cant read it with: string text = system.io.file.ReadallText("/usr/file"); it doesn't seam to have access to the file. EDIT: It needs to be from within the…
Dr.Net
  • 53
  • 6
0
votes
1 answer

Getting validateMenuItem: to fire for NSMenuItem using Xamarin-generated action

I would like to add additional menu items to my context menu. Ideally the items are enabled using validateMenuItem: [Action("validateMenuItem:")] public bool ValidateMenuItem(NSMenuItem item) { _logger.DebugFormat("Validating {0}…
tofutim
  • 22,664
  • 20
  • 87
  • 148
0
votes
0 answers

EmguCV - Resolving Visual C++ Dependency in Mono/Xamarin - Mac OSX

I have a project that is using old version of EmguCV. In windows,it requires Visual C++ Redistributable for proper functioning.The Library throws some exception when its missing.I'm porting the same application for MacOSX using Mono. I was wondering…
techno
  • 6,100
  • 16
  • 86
  • 192
0
votes
2 answers

Can a Xamarin.Mac app be compiled to run on Windows?

Seems like an obvious question however the answer is not plainly discoverable on the Xamarin website. If I develop a Xamarin app on the Mac, using Visual Studio for Mac, and developing in C#, can the result be compiled/built to run on Windows?
Demian Turner
  • 436
  • 3
  • 12
0
votes
0 answers

NSTable cell click event in Xamarin.mac

After having searched a lot without success for a way to manage the click event on a NSTable delegate in Xamarin.mac, for instance the following thread without answers after two years: NSTable row click event I made an override of ShouldSelectRow…
fbazzi
  • 31
  • 3
0
votes
0 answers

Throttling KVO bindings (Xamarin / Mac )

I have a Mac desktop app in Xamarin. There is a KVO Model that the UI is bound to using interface builder. I also listen out for changes to the values in the model, and when changed, update attached hardware with the new value over a Serial Port…
Matt Bryson
  • 2,286
  • 2
  • 22
  • 42
0
votes
1 answer

How can I connect to an RDS MySQL DB from C# using a Certificate Authority?

I am building a Xamarin.Mac application (C#) which needs to connect to an AWS RDS MySQL database. I have the code: using (SqlConnection connection = new SqlConnection(ConnectionString)) { connection.Open(); …
Brett
  • 11,637
  • 34
  • 127
  • 213
0
votes
1 answer

Cancelling Version Control in Xamarin Studio while sharing with Github

initially i was trying to commit a project to github , then accidentally i didn't commit the project well, now am trying to remove Version Control and switch it again to Commit the project to Github. I want to see this : But am seeing this : How…
user7615935
0
votes
0 answers

Binding Itemsource in ListView inside of CarouselView - Xamarin

I have tried to put a ListView inside a CarouselView, but the element binding does not work. If I comment out the ListView, the project will work fine. The error is Binding: 'Contenido' property not found on 'App.ViewModels.FeedListViewModel',…
0
votes
1 answer

Using AUGraph in Xamarin.Mac

I'm trying to get the following example working in a Xamarin.Mac project. It's an AUGraph that connects a mixer to the default output. The mixer has one input which is a render callback that generates a sine wav. var graph = new AUGraph(); …
Aaron Allen
  • 165
  • 6
0
votes
1 answer

How do I get notified when NSSpeechSynthesizer finished speaking?

I am using Xamarin.Mac, and I am writing a text to speech project. In Xamarin.Mac, the class NSSpeechSynthesizer does not provide the event DidFinishSpeaking. May I know how I can get notified when the speaking is finished? Thank you very much