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

What is the "2.0" in "Xamarin.Mac2.0" NuGet packaging target?

I am new to Xamarin and developing for a Mac. I am probably missing something obvious that is staring me in the face. When targeting with a NuGet package, my expectation for Xamarin Mac is using "Xamarin.MacX.X" where "X.X" is a version of Xamarin…
NickClarkIO
  • 43
  • 1
  • 3
0
votes
1 answer

WKWebView Blank on Catalina

In my Mac OSX app Am loading HTML from local file system (file:// URL) but on OSX Catalina it show a blank white screen, it works in fine in previous Mac versions. It works fine in Debug or Release mode so prob a setting when it get signed for…
0
votes
1 answer

Why are my new subviews superposing in my splitview?

I'm trying to use to a NSSplitView in my Xamarin.Mac Application. I need to add subviews programmatically for business reasons. It works fine, but there is a problem : When I add a subview, it's added on the SplitView but on top of the precedent one…
GlorfSf
  • 370
  • 1
  • 2
  • 12
0
votes
1 answer

Know when NSException is thrown from Xamarin

I have some Xamarin.Mac code that calls a native function as described here. When the function is called it sometimes causes an NSException to be thrown (dependent on connected hardware). Unfortunately the exception isn't caught using try/catch and…
fractor
  • 1,534
  • 2
  • 15
  • 30
0
votes
1 answer

Input File is not a Mach-O file

I'm developing a Xamarin.Forms application (UWP, Android and iOS) and wanted to add a Xamarin.MacOS project. When compiling I get this error and I have no idea how to fix it: MMP : error :…
Toms
  • 25
  • 5
0
votes
1 answer

How to get reference to NSWindow from NSToolbarItem subclass

I have a class CustomToolbarItem which inherits from NSToolbarItem. From within the CustomToolbarItem class itself, during initialisation, can I get a reference to the NSWindow instance to which it is added? I have tried adding the following code to…
fractor
  • 1,534
  • 2
  • 15
  • 30
0
votes
1 answer

How to determine whether the macOs app was launched via a url

I need to know whether the app was launched via an URL in DidFinishLaunching. The notification parameter in DidFinishLaunching contains a key LaunchIsDefaultLaunchKey which according to Apple documentation : "The value is NO if the app was…
Petru Lutenco
  • 217
  • 3
  • 11
0
votes
1 answer

Xamarin.Mac print function is only printing the screen, not the whole table

I am using Xamarin.Mac to develop a MacOS application with C#. I want to print(in the printer) a table, and I am using the print() function to do this. However, when I use this function it only prints what it is showing on the screen. Apparently, it…
0
votes
1 answer

How to request Contacts and Calendar Permissions on XamarinMac?

I'm trying to access the ContactStore of MacOS App, did the following implementation public void Contacts() { //Starting var store = new CNContactStore(); store.RequestAccess(CNEntityType.Contacts, async (bool granted, NSError error)…
0
votes
1 answer

Xamarin.Mac NSView DrawRect not called despite NeedsDisplay

I am trying to create a view representing a vertical line that moves horizontally within another view. I have the following ViewController and custom view. using System; using System.Timers; using AppKit; using CoreGraphics; namespace…
fractor
  • 1,534
  • 2
  • 15
  • 30
0
votes
1 answer

Xcode crashed when I try to drag CollectionView to storyboard

I am developing Xamarin.Mac application and so I am using Xcode interface builder. My problem is: every time I try to drag CollectionView from library onto my View, Xcode crashes. However, if I try to drag other elements, they work fine. How can I…
IntegerOverlord
  • 1,477
  • 1
  • 14
  • 33
0
votes
0 answers

gRPC support for Xamarin.Mac

I'm currently trying to add grpc to my Xamarin.Mac app. I'm able to add the nuget packages but while compiling i'm getting the following errors Undefined symbols for architecture x86_64: "_gprsharp_convert_clock_type", referenced from: …
Martin
  • 123
  • 10
0
votes
1 answer

How to construct nested UI elements in Xamarin.Mac and Xcode to bind to nested view models

I am moving my application development from WPF via Xamarin.Forms to Xamarin.Mac. I have a nested view model structure with view models exposing child view models via properties. Nested UI elements are bound to the view model properties exposed by…
fractor
  • 1,534
  • 2
  • 15
  • 30
0
votes
0 answers

Application in xamarin.mac that takes screenshots and system idle time

Actually, I'm new to 'xamarin.mac' applications and I'm trying an application that takes screenshot frequently also captures system idle time on login.So far I've managed to capture screenshot but How to take system idle time? I've gone through…
Indraniln
  • 1
  • 2
0
votes
1 answer

Continuous Button click passed to next button, how to prevent

My project is in Xamarin.Forms, supported platform is iOS, android and Mac. I have two Stacklayout in single Xamrin.Forms.View and each Stacklayout has one button on same position. It means button 1 position is x=100 and y=100 in first Stacklayout…
John Smith
  • 139
  • 8