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

Text is not set vertically center in entry control for mac and iOS platform in Xamarin

I am using an entry control of Xamarin.Forms for the iOS and Mac platforms. The problem I have is that I can control the horizontal alignment but not the vertical. I want to vertically center the text in the entry control but I am not able to do…
John Smith
  • 139
  • 8
0
votes
0 answers

How to make Xamarin.Mac Scriptable(AppleScript)?

I am working on Visual Studio for mac (Cocoa with C#) for a while. All I wanted to do is to make my app scriptable i.e., it could be able to accept commands from script editor. Can anyone suggest me how can I achieve it?
0
votes
3 answers

Is there a way that I can await a method that's currently not async?

I have this code that's run after a button is pressed: partial void DownloadPressed(NSObject sender) { Console.WriteLine("Pressed"); BeginInvokeOnMainThread(() => { Label1.StringValue = "Fetching Data"; …
Alan2
  • 23,493
  • 79
  • 256
  • 450
0
votes
1 answer

Not able to launch the MAC Application that is uploaded For App Store submission

I'm having trouble with a Mac App Store submission I have an Application Developed in Xamarin.Forms I release the App from Visual Studio for MAC in Release mode When I Install the package manually in my MAC system It is working perfect. But when i…
Vivek Patel
  • 1
  • 1
  • 2
0
votes
1 answer

macOS App manually signing with provisioning profile for App Store got error Code signature invalid

I try to use manual signing in macOS using provisioning profile. But everytime I try to run it will crash with error EXC_CRASH (Code Signature Invalid) If I try to use automatically manage signing or manually manage signing but without…
0
votes
1 answer

Is there a way to have a Xamarin.Mac app hide its window?

Is there a way to have a Xamarin.Mac app hide its window? In Main.storyboard I see the element has attribute visibleAtLaunch=“NO” set, so maybe there is some code making it visible in the first place I could suppress.
Frank Schwieterman
  • 24,142
  • 15
  • 92
  • 130
0
votes
1 answer

Hide Scollbar of ScrollView for Xamarin MAC platform

I want to hide the scollbar of ScollView in Xamarin.Forms I made rendere in UWP and it is working perfect and the code is protected override void OnElementChanged(ElementChangedEventArgs e) { try { …
V-Vek P-Tel
  • 77
  • 1
  • 10
0
votes
1 answer

How to select a file in finder in Xamarin?

I am trying to select a file in the Finder, that is not happening the method works well in Obj-C but in Xamarin Finder gets activated but the file is not getting selected. Whereas if I use Xamarin command to open the file it opens. Here is the…
Anoop Vaidya
  • 46,283
  • 15
  • 111
  • 140
0
votes
1 answer

Xamarin.MAC WebView Remote Debug

We have a Xamarin Mac App that contains a WebView. When we load a local html into the view the page stop loading contents (javascript error probably). Only happen in some pages. Any one knows some way to debug the webview ?(display developer tools,…
0
votes
0 answers

How to setup AppDelegate in Xamarin.Mac for NSApplicationDelegate

I have an App that uses Xamarin.Forms with UWP/Andoid/iOS and want to port it to Xamarin.Mac. The official documentation suggests to subclass NSApplicationDelegate via: [Register ("AppDelegate")] public class AppDelegate :…
Christian
  • 25,249
  • 40
  • 134
  • 225
0
votes
1 answer

Xamarin.Mac - Network connected / disconnected event

How can I detect the internet connectivity in a Xamarin.Mac app? How can I receive an event when LAN cable is plugged / unplugged, WIFI connected / disconnected or connected to other available networks? My application can only run on an internal…
Faisal Ghaffar
  • 181
  • 2
  • 12
0
votes
0 answers

System.Net.Http.HttpRequestException: An error occurred while sending the request

I do long task in background , it may take several minutes or hours and I run this task periodically ..., every 30 minute with repeating task : NSTimer.CreateRepeatingScheduledTimer(SyncIntervalSeconds, (obj) => { …
Nininea
  • 2,671
  • 6
  • 31
  • 57
0
votes
1 answer

Xamarin Mac, convert CGImage to .NET System.Drawing.Image

I'm using Xamarin/MONO to write a MacOS application, and I'd like to screenshot an image from the screen and use it alongside other image libraries in .NET I've found I can use the native system libs like so…
Richthofen
  • 2,076
  • 19
  • 39
0
votes
1 answer

How to remove the NSNotificationObserver Xamarin

I am having a class extending ReactiveWindowController. As in base class I see this: // subscribe to listen to window closing // notification to support (de)activation NSNotificationCenter .DefaultCenter …
Anoop Vaidya
  • 46,283
  • 15
  • 111
  • 140
0
votes
2 answers

MMP : error MM5109: Native linking failed with error code 1. Check build log for details

I am creating Binding DLL for Xamarin.Mac using the Binding project in visual studio Mac. I am able to build Binding DLL successfully, However while going to use that binding DLL in Xamarin.Mac project then it returns bellow error. MMP : error…