Getting domain Name in xamarin.mac
hi, i am not able to fetch the domain name in xamarin as i would in windows. please help. i tried the below options with no luck: var domainname = new System.Text.StringBuilder(256);...
View ArticleHow to resolve 'Could not load file or assembly ...
Hi This question seem to pop often in the forum without any relevant answer. (at least I didn't find any to solve my problem) I had a working mac app with legacy target + framework 4.7 libraries. Now...
View ArticlePkcs11Interop Xamarin.Mac crash
Hi. I'm trying to create a Xamarin.Mac application using the Pkcs11Interop library. First I created the Cocoa app then created .NetStandart lib and imported the NuGet package Pkcs11Interop there. But...
View ArticlePkcs11Interop in Xamarin
Hello, this is my first try with Xamarin, I'm trying to ma use the "Pkcs11Interop" library with an example code (code at the end). But i can't figure how to make it work because it gives me these two...
View ArticleLinker command failed with exit code 1 (use -v for more details)
Hi I add .NetStandart lib project in my default Xamarin.Mac solutuion. Then i add Pkcs11Interop nuget package to .NetStandart lib. the discussion about:...
View ArticleCasting a Task> to an NSMutableArray
I'm new to Mac coding and am creating a MacOS Cocoa App and PCL model project, using SQLite-net-pcl. I've implemented KVC but am now facing the challenge of getting an NSMutableArray for binding to the...
View ArticleOpen and Close Window Programmatically Xamarin.Mac
Hi. I think this is a simple question, but I have not found the answer to it. How can I open other windows of my application from the ViewController code? How can I close the current window from the...
View Articleany help plz to install VS on Mac ?!
about 4 days now trying to solve it plz I need it urgent every time I got that message: **Initial task interrupted by exception Message: Access to the path "/Users/Nemo/.config/xbuild" is denied....
View ArticleInvalid IL Code
Hi All, What would cause me to get exceptions like this? Invalid IL code in (wrapper dynamic-method) object:lambda_method (System.Runtime.CompilerServices.Closure,MC.Clio.TemporaryDocumentStorage):...
View ArticleI'm getting an error when trying to run a blank android app on Visual Studio...
The error and the warning I get are : Failed to get the java SDK version.Found java version 9.0.4 "javac"exited with code 2 .(MSB6006) I hava Java 8 SDK installed
View ArticleHow do I add an app icon to the home screen on install?
I created a macOs app, but when i install my generated .pkg file I can not choose to have the application icon appear on the desktop. And my application also does not fit in the Application folder How...
View ArticleAny CPU ?
In Visual Studio for Mac I can choose these Platform targets: What in meant by "Any CPU" ? (Do I get an app compiled for x86, x64 or Itanium ?) Best Eigil
View ArticleXamarin.Mac signal handling
Hi, I'd like to manage Signals, so the application does not just crash and leave users in the dark. I've been looking at PLCrashReporter which seems to do what I'd want, with one issue. As pointed...
View ArticleHow to Intercept MouseDown() on NSText
I'm running into a problem trying to intercept MouseDown() events for NSTextField. I've created a custom text field that extends NSTextField, and the first MouseDown() call gets intercepted correctly,...
View Article2 different app icons and I can´t figure out how to change it
Hello everyone, I have a problem with the icons on a mac monogame app. If I do everything that´s listed in the guide(https://developer.xamarin.com/guides/mac/deployment,_testing,_and_metrics/app-icon/)...
View ArticleObjective-c code to c# ( using system libraries)
Hey there! I am in a problem that I can not find a solution ... I'm porting objective-c to c# code to achieve a feature on my WKWebview . This feature requires to call to system libraries This is the...
View ArticleObjective C binding
I created a project that need to bind one third party library with my Xamarin Mac application. I used objective sharpie for creating ApiDefinitions and StructsAndEnums. But when i add .a using native...
View ArticleGetting System.InvalidCastException while loading View from a xib file
I have a xib file - LoaderView.xib and associated class LoaderView.cs which contains a view for showing loading text. When I try to load it in the main ViewController as - public override void...
View ArticleUnsubscribing from NSWorkspace.Notifications events
I can subscribe to NSWorkspace.Notifications like so: _processStartedToken = NSWorkspace.Notifications.ObserveDidLaunchApplication((sender, e) => { if (_processName ==...
View Articlehow to initiate gui to user from root process in Xamarin.mac
if there a way to launch process with with gui from root process without asking for any credentials any help would be appreciated. please reply soon. thank you.
View Article